features/with_gametel_option.feature in testgen-0.7 vs features/with_gametel_option.feature in testgen-0.8
- old
+ new
@@ -8,12 +8,10 @@
And the file "sample/Gemfile" should contain "gem 'rake'"
Scenario: Adding gametel to env.rb
When I run `testgen project sample --with-gametel`
Then a file named "sample/features/support/env.rb" should exist
- And the file "sample/features/support/env.rb" should contain "require 'brazenhead'"
- And the file "sample/features/support/env.rb" should contain "require 'brazenhead/server'"
And the file "sample/features/support/env.rb" should contain "require 'gametel'"
And the file "sample/features/support/env.rb" should contain "World(Gametel::Navigation)"
Scenario: Creating the keystore
When I run `testgen project sample --with-gametel`
@@ -25,14 +23,13 @@
And the file "sample/features/support/env.rb" should contain ":keystore_password => 'android'"
Scenario: Creating the Driver and hooks
When I run `testgen project sample --with-gametel`
Then a file named "sample/features/support/env.rb" should exist
- And the file "sample/features/support/env.rb" should contain "server = Brazenhead::Server.new(PATH_TO_APK, keystore)"
- And the file "sample/features/support/env.rb" should contain "class Driver"
- And the file "sample/features/support/env.rb" should contain "@driver = Driver.new"
- And the file "sample/features/support/env.rb" should contain "server.start(ACTIVITY_NAME_GOES_HERE)"
- And the file "sample/features/support/env.rb" should contain "server.stop"
+ And the file "sample/features/support/env.rb" should contain "@driver = Gametel.start(ACTIVITY_NAME_GOES_HERE, keystore)"
+ And the file "sample/features/support/env.rb" should contain "Gametel.stop"
+ And the file "sample/features/support/env.rb" should contain "Gametel.apk_path = PATH_TO_APK"
+
Scenario: Should not create the hooks file
When I run `testgen project sample --with-gametel`
Then a file named "sample/features/support/hooks.rb" should not exist