testgen 0.5 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ === Version 0.5.1 / 2012-10-1
2
+ * Added rake to the gemfile when using gametel
3
+ * Added required usage of require_all in env.rb when using gametel
4
+ * Changed placeholder for call to start
5
+
1
6
  === Version 0.5 / 2012-09-24
2
7
  * Added support for the latest features of gametel
3
8
 
@@ -1,3 +1,4 @@
1
+ @focus
1
2
  Feature: Adding the --with-gametel flag
2
3
 
3
4
  Scenario: Adding the require_all and gametel gems to Gemfile
@@ -5,6 +6,7 @@ Feature: Adding the --with-gametel flag
5
6
  Then a file named "sample/Gemfile" should exist
6
7
  And the file "sample/Gemfile" should contain "gem 'require_all'"
7
8
  And the file "sample/Gemfile" should contain "gem 'gametel'"
9
+ And the file "sample/Gemfile" should contain "gem 'rake'"
8
10
 
9
11
  Scenario: Adding gametel to env.rb
10
12
  When I run `testgen project sample --with-gametel`
@@ -14,6 +16,12 @@ Feature: Adding the --with-gametel flag
14
16
  And the file "sample/features/support/env.rb" should contain "require 'gametel'"
15
17
  And the file "sample/features/support/env.rb" should contain "World(Gametel::Navigation)"
16
18
 
19
+ Scenario: Adding require all to the env.rb
20
+ When I run `testgen project sample --with-gametel`
21
+ Then a file named "sample/features/support/env.rb" should exist
22
+ And the file "sample/features/support/env.rb" should contain "require 'require_all'"
23
+ And the file "sample/features/support/env.rb" should contain "require_rel 'screens'"
24
+
17
25
  Scenario: Creating the keystore
18
26
  When I run `testgen project sample --with-gametel`
19
27
  Then a file named "sample/features/support/env.rb" should exist
@@ -29,7 +37,7 @@ Feature: Adding the --with-gametel flag
29
37
  And the file "sample/features/support/env.rb" should contain "server = Brazenhead::Server.new(PATH_TO_APK, keystore)"
30
38
  And the file "sample/features/support/env.rb" should contain "class Driver"
31
39
  And the file "sample/features/support/env.rb" should contain "@driver = Driver.new"
32
- And the file "sample/features/support/env.rb" should contain "server.start(APK_NAME_GOES_HERE)"
40
+ And the file "sample/features/support/env.rb" should contain "server.start(ACTIVITY_NAME_GOES_HERE)"
33
41
  And the file "sample/features/support/env.rb" should contain "server.stop"
34
42
 
35
43
  Scenario: Should not create the hooks file
@@ -10,5 +10,6 @@ gem 'require_all'
10
10
  <% end -%>
11
11
  <% if with_gametel == 'true' -%>
12
12
  gem 'gametel'
13
+ gem 'rake'
13
14
  <% end -%>
14
15
 
@@ -17,6 +17,9 @@ require_all 'lib'
17
17
  require 'brazenhead'
18
18
  require 'brazenhead/server'
19
19
  require 'gametel'
20
+ require 'require_all'
21
+
22
+ require_rel 'screens'
20
23
 
21
24
  World(Gametel::Navigation)
22
25
 
@@ -35,7 +38,7 @@ end
35
38
 
36
39
  Before do
37
40
  @driver = Driver.new
38
- server.start(APK_NAME_GOES_HERE)
41
+ server.start(ACTIVITY_NAME_GOES_HERE)
39
42
  end
40
43
 
41
44
  After do
@@ -1,3 +1,3 @@
1
1
  module TestGen
2
- VERSION = "0.5"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testgen
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-25 00:00:00.000000000 Z
12
+ date: 2012-10-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -154,7 +154,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  segments:
156
156
  - 0
157
- hash: 3148347960850805763
157
+ hash: -172557713001730046
158
158
  required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  none: false
160
160
  requirements:
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  version: '0'
164
164
  segments:
165
165
  - 0
166
- hash: 3148347960850805763
166
+ hash: -172557713001730046
167
167
  requirements: []
168
168
  rubyforge_project: testgen
169
169
  rubygems_version: 1.8.24