features/with_gametel_option.feature in testgen-0.5 vs features/with_gametel_option.feature in testgen-0.5.1

- old
+ new

@@ -1,21 +1,29 @@ +@focus Feature: Adding the --with-gametel flag Scenario: Adding the require_all and gametel gems to Gemfile When I run `testgen project sample --with-gametel` Then a file named "sample/Gemfile" should exist And the file "sample/Gemfile" should contain "gem 'require_all'" And the file "sample/Gemfile" should contain "gem 'gametel'" + 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: Adding require all to the 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 'require_all'" + And the file "sample/features/support/env.rb" should contain "require_rel 'screens'" + Scenario: Creating the keystore 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 "keystore = {" And the file "sample/features/support/env.rb" should contain ":path => File.expand_path('~/.android/debug.keystore')" @@ -27,10 +35,10 @@ 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(APK_NAME_GOES_HERE)" + 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" 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