Created
May 9, 2012 05:09
-
-
Save uris77/2642007 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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