cucumber_factory 1.8.6 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.ruby-version +1 -0
- data/Rakefile +56 -6
- data/lib/cucumber/factory.rb +3 -4
- data/lib/cucumber_factory/switcher.rb +25 -0
- data/lib/cucumber_factory/version.rb +1 -1
- data/lib/cucumber_factory.rb +2 -0
- data/spec/rails-2.3/Gemfile +9 -0
- data/spec/rails-2.3/Rakefile +11 -0
- data/spec/{app_root → rails-2.3/app_root}/config/boot.rb +15 -0
- data/spec/rails-2.3/app_root/config/database.yml +4 -0
- data/spec/{app_root → rails-2.3/app_root}/config/environment.rb +0 -7
- data/spec/rails-2.3/app_root/config/environments/test.rb +28 -0
- data/spec/rails-2.3/app_root/config/preinitializer.rb +20 -0
- data/spec/{app_root → rails-2.3/app_root}/config/routes.rb +0 -0
- data/spec/{app_root → rails-2.3/app_root}/log/.gitignore +0 -0
- data/spec/{support → rails-2.3}/rcov.opts +0 -0
- data/spec/rails-2.3/spec/spec_helper.rb +28 -0
- data/spec/{support → rails-2.3}/spec.opts +0 -0
- data/spec/rails-3.0/.rspec +2 -0
- data/spec/rails-3.0/Gemfile +8 -0
- data/spec/rails-3.0/Rakefile +10 -0
- data/spec/rails-3.0/app_root/.gitignore +4 -0
- data/spec/rails-3.0/app_root/config/application.rb +32 -0
- data/spec/rails-3.0/app_root/config/boot.rb +13 -0
- data/spec/rails-3.0/app_root/config/database.yml +4 -0
- data/spec/rails-3.0/app_root/config/environment.rb +5 -0
- data/spec/rails-3.0/app_root/config/environments/test.rb +35 -0
- data/spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/rails-3.0/app_root/config/initializers/inflections.rb +10 -0
- data/spec/rails-3.0/app_root/config/initializers/mime_types.rb +5 -0
- data/spec/rails-3.0/app_root/config/initializers/secret_token.rb +7 -0
- data/spec/rails-3.0/app_root/config/initializers/session_store.rb +8 -0
- data/spec/rails-3.0/app_root/config/routes.rb +3 -0
- data/spec/{app_root/config/environments/in_memory.rb → rails-3.0/app_root/log/.gitkeep} +0 -0
- data/spec/rails-3.0/rcov.opts +2 -0
- data/spec/rails-3.0/spec/spec_helper.rb +25 -0
- data/spec/rails-3.2/.rspec +2 -0
- data/spec/rails-3.2/Gemfile +8 -0
- data/spec/rails-3.2/Rakefile +10 -0
- data/spec/rails-3.2/app_root/.gitignore +4 -0
- data/spec/rails-3.2/app_root/config/application.rb +32 -0
- data/spec/rails-3.2/app_root/config/boot.rb +13 -0
- data/spec/rails-3.2/app_root/config/database.yml +4 -0
- data/spec/rails-3.2/app_root/config/environment.rb +5 -0
- data/spec/rails-3.2/app_root/config/environments/test.rb +35 -0
- data/spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/rails-3.2/app_root/config/initializers/inflections.rb +10 -0
- data/spec/rails-3.2/app_root/config/initializers/mime_types.rb +5 -0
- data/spec/rails-3.2/app_root/config/initializers/secret_token.rb +7 -0
- data/spec/rails-3.2/app_root/config/initializers/session_store.rb +8 -0
- data/spec/rails-3.2/app_root/config/routes.rb +3 -0
- data/spec/{app_root/config/environments/mysql.rb → rails-3.2/app_root/log/.gitkeep} +0 -0
- data/spec/rails-3.2/rcov.opts +2 -0
- data/spec/rails-3.2/spec/spec_helper.rb +25 -0
- data/spec/rails-4.0/.rspec +2 -0
- data/spec/rails-4.0/Gemfile +8 -0
- data/spec/rails-4.0/Rakefile +10 -0
- data/spec/rails-4.0/app_root/.gitignore +4 -0
- data/spec/rails-4.0/app_root/config/application.rb +31 -0
- data/spec/rails-4.0/app_root/config/boot.rb +13 -0
- data/spec/rails-4.0/app_root/config/database.yml +4 -0
- data/spec/rails-4.0/app_root/config/environment.rb +5 -0
- data/spec/rails-4.0/app_root/config/environments/test.rb +34 -0
- data/spec/rails-4.0/app_root/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/rails-4.0/app_root/config/initializers/inflections.rb +10 -0
- data/spec/rails-4.0/app_root/config/initializers/mime_types.rb +5 -0
- data/spec/rails-4.0/app_root/config/initializers/secret_token.rb +7 -0
- data/spec/rails-4.0/app_root/config/initializers/session_store.rb +8 -0
- data/spec/rails-4.0/app_root/config/locales/en.yml +4 -0
- data/spec/rails-4.0/app_root/config/routes.rb +3 -0
- data/spec/{app_root/config/environments/postgresql.rb → rails-4.0/app_root/log/.gitkeep} +0 -0
- data/spec/rails-4.0/rcov.opts +2 -0
- data/spec/rails-4.0/spec/spec_helper.rb +25 -0
- data/spec/{app_root → shared/app_root}/app/controllers/application_controller.rb +0 -0
- data/spec/{app_root → shared/app_root}/app/models/job_offer.rb +0 -0
- data/spec/{app_root → shared/app_root}/app/models/machinist_model.rb +0 -0
- data/spec/{app_root → shared/app_root}/app/models/movie.rb +0 -0
- data/spec/{app_root → shared/app_root}/app/models/opera.rb +0 -0
- data/spec/shared/app_root/app/models/payment.rb +8 -0
- data/spec/{app_root → shared/app_root}/app/models/people/actor.rb +0 -0
- data/spec/{app_root → shared/app_root}/app/models/plain_ruby_class.rb +0 -0
- data/spec/{app_root → shared/app_root}/app/models/user.rb +0 -0
- data/spec/shared/app_root/config/locales/en.yml +4 -0
- data/spec/{app_root → shared/app_root}/db/migrate/001_create_movies.rb +0 -0
- data/spec/{app_root → shared/app_root}/db/migrate/002_create_users.rb +0 -0
- data/spec/{app_root → shared/app_root}/db/migrate/003_create_payments.rb +0 -0
- data/spec/{app_root → shared/app_root}/db/migrate/004_create_actors.rb +0 -0
- data/spec/shared/cucumber_factory/cucumber_helper.rb +15 -0
- data/spec/{factory_spec.rb → shared/cucumber_factory/factory_spec.rb} +0 -0
- data/spec/{runtime_ext_spec.rb → shared/cucumber_factory/runtime_ext_spec.rb} +2 -0
- data/spec/{steps_spec.rb → shared/cucumber_factory/steps_spec.rb} +34 -13
- metadata +185 -139
- data/Gemfile +0 -12
- data/spec/app_root/app/models/payment.rb +0 -6
- data/spec/app_root/config/database.yml +0 -21
- data/spec/app_root/config/environments/sqlite.rb +0 -0
- data/spec/app_root/config/environments/sqlite3.rb +0 -0
- data/spec/app_root/lib/console_with_fixtures.rb +0 -4
- data/spec/app_root/script/console +0 -7
- data/spec/spec_helper.rb +0 -36
metadata
CHANGED
@@ -1,121 +1,121 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber_factory
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.9.1
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 8
|
9
|
-
- 6
|
10
|
-
version: 1.8.6
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Henning Koch
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2014-03-27 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: rails
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
18
|
+
requirements:
|
27
19
|
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 2
|
32
|
-
- 3
|
33
|
-
version: "2.3"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '2.3'
|
34
22
|
type: :development
|
35
|
-
version_requirements: *id001
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: rspec
|
38
23
|
prerelease: false
|
39
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.3'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
40
33
|
none: false
|
41
|
-
requirements:
|
34
|
+
requirements:
|
42
35
|
- - <
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
|
45
|
-
segments:
|
46
|
-
- 2
|
47
|
-
version: "2"
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '2'
|
48
38
|
type: :development
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: rspec-rails
|
52
39
|
prerelease: false
|
53
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
41
|
none: false
|
55
|
-
requirements:
|
56
|
-
- -
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
42
|
+
requirements:
|
43
|
+
- - <
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '2'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rspec-rails
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - '='
|
52
|
+
- !ruby/object:Gem::Version
|
63
53
|
version: 1.3.4
|
64
54
|
type: :development
|
65
|
-
version_requirements: *id003
|
66
|
-
- !ruby/object:Gem::Dependency
|
67
|
-
name: sqlite3
|
68
55
|
prerelease: false
|
69
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
70
57
|
none: false
|
71
|
-
requirements:
|
72
|
-
- -
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.3.4
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: sqlite3
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
78
70
|
type: :development
|
79
|
-
version_requirements: *id004
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: cucumber
|
82
71
|
prerelease: false
|
83
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: cucumber
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
84
81
|
none: false
|
85
|
-
requirements:
|
86
|
-
- -
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
|
89
|
-
segments:
|
90
|
-
- 0
|
91
|
-
version: "0"
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
92
86
|
type: :runtime
|
93
|
-
version_requirements: *id005
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: activesupport
|
96
87
|
prerelease: false
|
97
|
-
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: activesupport
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
98
97
|
none: false
|
99
|
-
requirements:
|
100
|
-
- -
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
|
103
|
-
segments:
|
104
|
-
- 0
|
105
|
-
version: "0"
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
106
102
|
type: :runtime
|
107
|
-
|
108
|
-
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
description: Cucumber Factory allows you to create ActiveRecord models from your Cucumber
|
111
|
+
features without writing step definitions for each model.
|
109
112
|
email: github@makandra.de
|
110
113
|
executables: []
|
111
|
-
|
112
114
|
extensions: []
|
113
|
-
|
114
115
|
extra_rdoc_files: []
|
115
|
-
|
116
|
-
files:
|
116
|
+
files:
|
117
117
|
- .gitignore
|
118
|
-
-
|
118
|
+
- .ruby-version
|
119
119
|
- MIT-LICENSE
|
120
120
|
- README.rdoc
|
121
121
|
- Rakefile
|
@@ -123,71 +123,117 @@ files:
|
|
123
123
|
- lib/cucumber/factory.rb
|
124
124
|
- lib/cucumber/runtime_ext.rb
|
125
125
|
- lib/cucumber_factory.rb
|
126
|
+
- lib/cucumber_factory/switcher.rb
|
126
127
|
- lib/cucumber_factory/version.rb
|
127
|
-
- spec/
|
128
|
-
- spec/
|
129
|
-
- spec/app_root/
|
130
|
-
- spec/app_root/
|
131
|
-
- spec/app_root/
|
132
|
-
- spec/app_root/
|
133
|
-
- spec/app_root/
|
134
|
-
- spec/app_root/
|
135
|
-
- spec/app_root/
|
136
|
-
- spec/
|
137
|
-
- spec/
|
138
|
-
- spec/
|
139
|
-
- spec/
|
140
|
-
- spec/
|
141
|
-
- spec/
|
142
|
-
- spec/app_root
|
143
|
-
- spec/app_root/config/
|
144
|
-
- spec/app_root/config/
|
145
|
-
- spec/app_root/
|
146
|
-
- spec/app_root/
|
147
|
-
- spec/app_root/
|
148
|
-
- spec/app_root/
|
149
|
-
- spec/app_root/
|
150
|
-
- spec/app_root/
|
151
|
-
- spec/app_root/
|
152
|
-
- spec/
|
153
|
-
- spec/
|
154
|
-
- spec/
|
155
|
-
- spec/
|
156
|
-
- spec/
|
157
|
-
- spec/
|
158
|
-
|
128
|
+
- spec/rails-2.3/Gemfile
|
129
|
+
- spec/rails-2.3/Rakefile
|
130
|
+
- spec/rails-2.3/app_root/config/boot.rb
|
131
|
+
- spec/rails-2.3/app_root/config/database.yml
|
132
|
+
- spec/rails-2.3/app_root/config/environment.rb
|
133
|
+
- spec/rails-2.3/app_root/config/environments/test.rb
|
134
|
+
- spec/rails-2.3/app_root/config/preinitializer.rb
|
135
|
+
- spec/rails-2.3/app_root/config/routes.rb
|
136
|
+
- spec/rails-2.3/app_root/log/.gitignore
|
137
|
+
- spec/rails-2.3/rcov.opts
|
138
|
+
- spec/rails-2.3/spec.opts
|
139
|
+
- spec/rails-2.3/spec/spec_helper.rb
|
140
|
+
- spec/rails-3.0/.rspec
|
141
|
+
- spec/rails-3.0/Gemfile
|
142
|
+
- spec/rails-3.0/Rakefile
|
143
|
+
- spec/rails-3.0/app_root/.gitignore
|
144
|
+
- spec/rails-3.0/app_root/config/application.rb
|
145
|
+
- spec/rails-3.0/app_root/config/boot.rb
|
146
|
+
- spec/rails-3.0/app_root/config/database.yml
|
147
|
+
- spec/rails-3.0/app_root/config/environment.rb
|
148
|
+
- spec/rails-3.0/app_root/config/environments/test.rb
|
149
|
+
- spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb
|
150
|
+
- spec/rails-3.0/app_root/config/initializers/inflections.rb
|
151
|
+
- spec/rails-3.0/app_root/config/initializers/mime_types.rb
|
152
|
+
- spec/rails-3.0/app_root/config/initializers/secret_token.rb
|
153
|
+
- spec/rails-3.0/app_root/config/initializers/session_store.rb
|
154
|
+
- spec/rails-3.0/app_root/config/routes.rb
|
155
|
+
- spec/rails-3.0/app_root/log/.gitkeep
|
156
|
+
- spec/rails-3.0/rcov.opts
|
157
|
+
- spec/rails-3.0/spec/spec_helper.rb
|
158
|
+
- spec/rails-3.2/.rspec
|
159
|
+
- spec/rails-3.2/Gemfile
|
160
|
+
- spec/rails-3.2/Rakefile
|
161
|
+
- spec/rails-3.2/app_root/.gitignore
|
162
|
+
- spec/rails-3.2/app_root/config/application.rb
|
163
|
+
- spec/rails-3.2/app_root/config/boot.rb
|
164
|
+
- spec/rails-3.2/app_root/config/database.yml
|
165
|
+
- spec/rails-3.2/app_root/config/environment.rb
|
166
|
+
- spec/rails-3.2/app_root/config/environments/test.rb
|
167
|
+
- spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb
|
168
|
+
- spec/rails-3.2/app_root/config/initializers/inflections.rb
|
169
|
+
- spec/rails-3.2/app_root/config/initializers/mime_types.rb
|
170
|
+
- spec/rails-3.2/app_root/config/initializers/secret_token.rb
|
171
|
+
- spec/rails-3.2/app_root/config/initializers/session_store.rb
|
172
|
+
- spec/rails-3.2/app_root/config/routes.rb
|
173
|
+
- spec/rails-3.2/app_root/log/.gitkeep
|
174
|
+
- spec/rails-3.2/rcov.opts
|
175
|
+
- spec/rails-3.2/spec/spec_helper.rb
|
176
|
+
- spec/rails-4.0/.rspec
|
177
|
+
- spec/rails-4.0/Gemfile
|
178
|
+
- spec/rails-4.0/Rakefile
|
179
|
+
- spec/rails-4.0/app_root/.gitignore
|
180
|
+
- spec/rails-4.0/app_root/config/application.rb
|
181
|
+
- spec/rails-4.0/app_root/config/boot.rb
|
182
|
+
- spec/rails-4.0/app_root/config/database.yml
|
183
|
+
- spec/rails-4.0/app_root/config/environment.rb
|
184
|
+
- spec/rails-4.0/app_root/config/environments/test.rb
|
185
|
+
- spec/rails-4.0/app_root/config/initializers/backtrace_silencers.rb
|
186
|
+
- spec/rails-4.0/app_root/config/initializers/inflections.rb
|
187
|
+
- spec/rails-4.0/app_root/config/initializers/mime_types.rb
|
188
|
+
- spec/rails-4.0/app_root/config/initializers/secret_token.rb
|
189
|
+
- spec/rails-4.0/app_root/config/initializers/session_store.rb
|
190
|
+
- spec/rails-4.0/app_root/config/locales/en.yml
|
191
|
+
- spec/rails-4.0/app_root/config/routes.rb
|
192
|
+
- spec/rails-4.0/app_root/log/.gitkeep
|
193
|
+
- spec/rails-4.0/rcov.opts
|
194
|
+
- spec/rails-4.0/spec/spec_helper.rb
|
195
|
+
- spec/shared/app_root/app/controllers/application_controller.rb
|
196
|
+
- spec/shared/app_root/app/models/job_offer.rb
|
197
|
+
- spec/shared/app_root/app/models/machinist_model.rb
|
198
|
+
- spec/shared/app_root/app/models/movie.rb
|
199
|
+
- spec/shared/app_root/app/models/opera.rb
|
200
|
+
- spec/shared/app_root/app/models/payment.rb
|
201
|
+
- spec/shared/app_root/app/models/people/actor.rb
|
202
|
+
- spec/shared/app_root/app/models/plain_ruby_class.rb
|
203
|
+
- spec/shared/app_root/app/models/user.rb
|
204
|
+
- spec/shared/app_root/config/locales/en.yml
|
205
|
+
- spec/shared/app_root/db/migrate/001_create_movies.rb
|
206
|
+
- spec/shared/app_root/db/migrate/002_create_users.rb
|
207
|
+
- spec/shared/app_root/db/migrate/003_create_payments.rb
|
208
|
+
- spec/shared/app_root/db/migrate/004_create_actors.rb
|
209
|
+
- spec/shared/cucumber_factory/cucumber_helper.rb
|
210
|
+
- spec/shared/cucumber_factory/factory_spec.rb
|
211
|
+
- spec/shared/cucumber_factory/runtime_ext_spec.rb
|
212
|
+
- spec/shared/cucumber_factory/steps_spec.rb
|
159
213
|
homepage: http://github.com/makandra/cucumber_factory
|
160
|
-
licenses:
|
214
|
+
licenses:
|
161
215
|
- MIT
|
162
216
|
post_install_message:
|
163
217
|
rdoc_options: []
|
164
|
-
|
165
|
-
require_paths:
|
218
|
+
require_paths:
|
166
219
|
- lib
|
167
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
220
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
168
221
|
none: false
|
169
|
-
requirements:
|
170
|
-
- -
|
171
|
-
- !ruby/object:Gem::Version
|
172
|
-
|
173
|
-
|
174
|
-
- 0
|
175
|
-
version: "0"
|
176
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
222
|
+
requirements:
|
223
|
+
- - ! '>='
|
224
|
+
- !ruby/object:Gem::Version
|
225
|
+
version: '0'
|
226
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
177
227
|
none: false
|
178
|
-
requirements:
|
179
|
-
- -
|
180
|
-
- !ruby/object:Gem::Version
|
181
|
-
|
182
|
-
segments:
|
183
|
-
- 0
|
184
|
-
version: "0"
|
228
|
+
requirements:
|
229
|
+
- - ! '>='
|
230
|
+
- !ruby/object:Gem::Version
|
231
|
+
version: '0'
|
185
232
|
requirements: []
|
186
|
-
|
187
233
|
rubyforge_project:
|
188
|
-
rubygems_version: 1.
|
234
|
+
rubygems_version: 1.8.25
|
189
235
|
signing_key:
|
190
236
|
specification_version: 3
|
191
237
|
summary: Create records from Cucumber features without writing step definitions.
|
192
238
|
test_files: []
|
193
|
-
|
239
|
+
has_rdoc:
|
data/Gemfile
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
source 'http://rubygems.org'
|
2
|
-
|
3
|
-
gemspec
|
4
|
-
|
5
|
-
group :development do
|
6
|
-
if RUBY_VERSION > '1.9'
|
7
|
-
# normally we do not want to freeze versions in a Gem's Gemfile in this
|
8
|
-
# case, rspec-rails requires this exact test-unit version on ruby 1.9,
|
9
|
-
# without actually having it as a dependency, so we need to freeze it here
|
10
|
-
gem 'test-unit', '=1.2.3'
|
11
|
-
end
|
12
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
in_memory:
|
2
|
-
adapter: sqlite3
|
3
|
-
database: ":memory:"
|
4
|
-
verbosity: quiet
|
5
|
-
sqlite:
|
6
|
-
adapter: sqlite
|
7
|
-
dbfile: plugin_test.sqlite.db
|
8
|
-
sqlite3:
|
9
|
-
adapter: sqlite3
|
10
|
-
dbfile: plugin_test.sqlite3.db
|
11
|
-
postgresql:
|
12
|
-
adapter: postgresql
|
13
|
-
username: postgres
|
14
|
-
password: postgres
|
15
|
-
database: plugin_test
|
16
|
-
mysql:
|
17
|
-
adapter: mysql
|
18
|
-
host: localhost
|
19
|
-
username: root
|
20
|
-
password:
|
21
|
-
database: plugin_test
|
File without changes
|
File without changes
|
@@ -1,4 +0,0 @@
|
|
1
|
-
# Loads fixtures into the database when running the test app via the console
|
2
|
-
(ENV['FIXTURES'] ? ENV['FIXTURES'].split(/,/) : Dir.glob(File.join(Rails.root, '../fixtures/*.{yml,csv}'))).each do |fixture_file|
|
3
|
-
Fixtures.create_fixtures(File.join(Rails.root, '../fixtures'), File.basename(fixture_file, '.*'))
|
4
|
-
end
|
data/spec/spec_helper.rb
DELETED
@@ -1,36 +0,0 @@
|
|
1
|
-
$: << File.join(File.dirname(__FILE__), "/../lib" )
|
2
|
-
|
3
|
-
# Set the default environment to sqlite3's in_memory database
|
4
|
-
ENV['RAILS_ENV'] ||= 'in_memory'
|
5
|
-
|
6
|
-
# Load the Rails environment and testing framework
|
7
|
-
require "#{File.dirname(__FILE__)}/app_root/config/environment"
|
8
|
-
require "#{File.dirname(__FILE__)}/../lib/cucumber_factory"
|
9
|
-
require 'spec/rails'
|
10
|
-
|
11
|
-
# Undo changes to RAILS_ENV
|
12
|
-
silence_warnings {RAILS_ENV = ENV['RAILS_ENV']}
|
13
|
-
|
14
|
-
# Run the migrations
|
15
|
-
ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
|
16
|
-
|
17
|
-
Spec::Runner.configure do |config|
|
18
|
-
config.use_transactional_fixtures = true
|
19
|
-
config.use_instantiated_fixtures = false
|
20
|
-
end
|
21
|
-
|
22
|
-
def prepare_cucumber_example
|
23
|
-
@runtime = Cucumber::Runtime.new
|
24
|
-
language = @runtime.load_programming_language('rb')
|
25
|
-
scenario = stub('scenario', :language => 'en', :accept_hook? => true)
|
26
|
-
language.send(:begin_scenario, scenario)
|
27
|
-
@world = language.current_world
|
28
|
-
@main = Object.new
|
29
|
-
@main.extend(Cucumber::RbSupport::RbDsl)
|
30
|
-
Cucumber::Factory.add_steps(@main)
|
31
|
-
@runtime.before(scenario)
|
32
|
-
end
|
33
|
-
|
34
|
-
def invoke_cucumber_step(step)
|
35
|
-
@runtime.step_match(step).invoke(nil) # nil means no multiline args
|
36
|
-
end
|