Skip to content

Instantly share code, notes, and snippets.

@uris77
Created May 9, 2012 05:09
Show Gist options
  • Save uris77/2642007 to your computer and use it in GitHub Desktop.
Save uris77/2642007 to your computer and use it in GitHub Desktop.
import cucumber.runtime.PendingException
import static org.junit.Assert.*
import org.wherecaniget.*
this.metaClass.mixin(cucumber.runtime.groovy.EN)
StoreVM vm
Given(~"^I open new store form\$") {->
}
Given(~"^I add \"([^\"]*)\"\$"){String arg1->
vm = new StoreVM()
vm.store = [name: 'Test Store']
vm.storeService = new StoreService()
vm.save()
}
Then(~"^I see \"([^\"]*)\" details\$") {String arg1->
assertNotNull vm.store.id
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment