testgen 0.7 → 0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ testgen
@@ -0,0 +1 @@
1
+ ruby-1.9.3-p392
data/ChangeLog CHANGED
@@ -1,3 +1,6 @@
1
+ === Verstion 0.8 / 2013-4-8
2
+ * Simplified Gametel generated files to utilize Gametel updates
3
+
1
4
  === Version 0.7 / 2013-3-24
2
5
  * Fixed order of requires when using the --with-lib option
3
6
 
@@ -10,8 +10,6 @@ Feature: Adding the --with-gametel flag
10
10
  Scenario: Adding gametel to env.rb
11
11
  When I run `testgen project sample --with-gametel`
12
12
  Then a file named "sample/features/support/env.rb" should exist
13
- And the file "sample/features/support/env.rb" should contain "require 'brazenhead'"
14
- And the file "sample/features/support/env.rb" should contain "require 'brazenhead/server'"
15
13
  And the file "sample/features/support/env.rb" should contain "require 'gametel'"
16
14
  And the file "sample/features/support/env.rb" should contain "World(Gametel::Navigation)"
17
15
 
@@ -27,11 +25,10 @@ Feature: Adding the --with-gametel flag
27
25
  Scenario: Creating the Driver and hooks
28
26
  When I run `testgen project sample --with-gametel`
29
27
  Then a file named "sample/features/support/env.rb" should exist
30
- And the file "sample/features/support/env.rb" should contain "server = Brazenhead::Server.new(PATH_TO_APK, keystore)"
31
- And the file "sample/features/support/env.rb" should contain "class Driver"
32
- And the file "sample/features/support/env.rb" should contain "@driver = Driver.new"
33
- And the file "sample/features/support/env.rb" should contain "server.start(ACTIVITY_NAME_GOES_HERE)"
34
- And the file "sample/features/support/env.rb" should contain "server.stop"
28
+ And the file "sample/features/support/env.rb" should contain "@driver = Gametel.start(ACTIVITY_NAME_GOES_HERE, keystore)"
29
+ And the file "sample/features/support/env.rb" should contain "Gametel.stop"
30
+ And the file "sample/features/support/env.rb" should contain "Gametel.apk_path = PATH_TO_APK"
31
+
35
32
 
36
33
  Scenario: Should not create the hooks file
37
34
  When I run `testgen project sample --with-gametel`
@@ -8,8 +8,6 @@ require 'page-object'
8
8
  <% end -%>
9
9
 
10
10
  <% if with_gametel == 'true' -%>
11
- require 'brazenhead'
12
- require 'brazenhead/server'
13
11
  require 'gametel'
14
12
  <% end -%>
15
13
 
@@ -34,19 +32,14 @@ keystore = {
34
32
  :keystore_password => 'android'
35
33
  }
36
34
 
37
- server = Brazenhead::Server.new(PATH_TO_APK, keystore)
38
-
39
- class Driver
40
- include Brazenhead
41
- end
35
+ Gametel.apk_path = PATH_TO_APK
42
36
 
43
37
  Before do
44
- @driver = Driver.new
45
- server.start(ACTIVITY_NAME_GOES_HERE)
38
+ @driver = Gametel.start(ACTIVITY_NAME_GOES_HERE, keystore)
46
39
  end
47
40
 
48
41
  After do
49
- server.stop
42
+ Gametel.stop
50
43
  end
51
44
  <% end -%>
52
45
 
@@ -1,3 +1,3 @@
1
1
  module TestGen
2
- VERSION = "0.7"
2
+ VERSION = "0.8"
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.7'
4
+ version: '0.8'
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: 2013-03-24 00:00:00.000000000 Z
12
+ date: 2013-04-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -100,7 +100,8 @@ extensions: []
100
100
  extra_rdoc_files: []
101
101
  files:
102
102
  - .gitignore
103
- - .rvmrc
103
+ - .ruby-gemset
104
+ - .ruby-version
104
105
  - ChangeLog
105
106
  - Gemfile
106
107
  - Guardfile
@@ -137,18 +138,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
138
  - - ! '>='
138
139
  - !ruby/object:Gem::Version
139
140
  version: '0'
140
- segments:
141
- - 0
142
- hash: 3275149058949778884
143
141
  required_rubygems_version: !ruby/object:Gem::Requirement
144
142
  none: false
145
143
  requirements:
146
144
  - - ! '>='
147
145
  - !ruby/object:Gem::Version
148
146
  version: '0'
149
- segments:
150
- - 0
151
- hash: 3275149058949778884
152
147
  requirements: []
153
148
  rubyforge_project: testgen
154
149
  rubygems_version: 1.8.25
data/.rvmrc DELETED
@@ -1 +0,0 @@
1
- rvm 1.9.3-p392@testgen --create