Permalink
Browse files

Implement Steps for Store

  • Loading branch information...
1 parent 7dbfbc8 commit 057b91ab00e90f49385fb4119073c5e978c60013 @uris77 committed May 9, 2012
Showing with 9 additions and 3 deletions.
  1. +9 −3 test/functional/steps/Store_steps.groovy
@@ -1,15 +1,21 @@
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\$") {->
- throw new PendingException()
}
Given(~"^I add \"([^\"]*)\"\$"){String arg1->
- throw new PendingException()
+ vm = new StoreVM()
+ vm.store = [name: 'Test Store']
+ vm.storeService = new StoreService()
+ vm.save()
}
Then(~"^I see \"([^\"]*)\" details\$") {String arg1->
- throw new PendingException()
+ assertNotNull vm.store.id
}

0 comments on commit 057b91a

Please sign in to comment.