acceptance_test 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2E0ZDNiNWM1NDFiMzI2OWI3ZmU1Y2VmZDQ5YmYyYzkxMWYzMzEyMw==
4
+ ZWMxZjliYjllMzEzNWFjNjc1NmQ3ZWQ2NzMxMTlmNWQyYmE1NjUzMA==
5
5
  data.tar.gz: !binary |-
6
- OWNiMDE0NWZlMDdlZDgyZGE5MDM2ZWE5NWY0NjI4OGNlOTg1NDQ2Mw==
6
+ MDVjMGJiYzEwNzQzNTgyNjk4ZjgyMDRmZDA4ZjgzODk3N2EzZGE3MA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZGU3MGY2ZDczNGI0YmIzNGZiYWUwMzkyYTExOTNhMTZmYmQ2MzliZTg0ZWRi
10
- MzkwYjQ5N2MxZDFkOTJjNjgwMTFiMGMzMjI3ZmQwMTQ5NjViM2Y5OGExMjlk
11
- MmRkMTYyYzkwZTBmODM0NmQ5ZWEwZjlhNmNjODgwNmU3ZTk4YzA=
9
+ NDY4ZjlkOGVkY2Y4MTQzMWY0MmFiNmRiMjczYjQ3Y2EyNTNjZmY1YTdmMDll
10
+ MDkzNjQzYzdlYzdjNGY5YzhjNTU5NmM4ZTI4MGNiMGE4NWFkOTE4MWJhOGI2
11
+ MThkZWUyMDRiYzcyNTdhOWY1MTE5NTlmNWUwYjRmMDcwMTdkMjU=
12
12
  data.tar.gz: !binary |-
13
- NWIwN2JhZmIxMmJlNTQ3ODc0N2JkOTdjNWZkZTFmODJkMTk0ZTY1YmQwNGVk
14
- NDcwZDhlMzE3NjEyMmJmNTcyYjdhNzMyZjgyMzBkZDgwNWYwY2YyZTVlYWFk
15
- N2YxY2ZlMGE2N2I0MmUxN2NhMTFkYThlMGY2NDk1MGVlOWY0ZTg=
13
+ YzdiYTdlMzUxMGFmOTAzZjBkN2E4OTI5YjE2YjViZWQ2NDFhN2Q4ODBkNDg5
14
+ NzBiNGRmOGVkZTA4ZTI4MDBlYjFmZTkyMGFjMmFkNzEyYWFiMTg3OWZkZDk4
15
+ OTg5NWZmM2NmM2U3MzdmMGIwNGVhMjIyMTg1NDVjMjNmNDkxMzc=
data/.gitignore CHANGED
@@ -11,6 +11,7 @@ spec/reports
11
11
  test/tmp
12
12
  test/version_tmp
13
13
  tmp
14
+ .idea
14
15
 
15
16
  # YARD artifacts
16
17
  .yardoc
data/.idea/.rakeTasks CHANGED
@@ -4,4 +4,4 @@ You are allowed to:
4
4
  1. Remove rake task
5
5
  2. Add existing rake tasks
6
6
  To add existing rake tasks automatically delete this file and reload the project.
7
- --><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="build" taksId="build" /><RakeTask description="" fullCmd="gen" taksId="gen" /><RakeTask description="" fullCmd="install" taksId="install" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeTask description="" fullCmd="turnip" taksId="turnip" /><RakeTask description="" fullCmd="uninstall" taksId="uninstall" /></RakeGroup></Settings>
@@ -32,7 +32,7 @@
32
32
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
33
33
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
34
34
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
35
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/features/wikipedia_search.feature" />
35
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/features/wikipedia_search.fea" />
36
36
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
37
37
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
38
38
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
@@ -51,6 +51,123 @@
51
51
  <ConfigurationWrapper RunnerId="RubyRunner" />
52
52
  <method />
53
53
  </configuration>
54
+ <configuration default="false" name="wikipedia_search: acceptance_test (1)" type="CucumberRunConfigurationType" factoryName="Cucumber">
55
+ <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
56
+ <module name="acceptance_test" />
57
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
58
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
59
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
60
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
61
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
62
+ <envs>
63
+ <env name="JRUBY_OPTS" value="-X+O" />
64
+ </envs>
65
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
66
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
67
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
68
+ <COVERAGE_PATTERN ENABLED="true">
69
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
70
+ </COVERAGE_PATTERN>
71
+ </EXTENSION>
72
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
73
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
74
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
75
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
76
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/features/wikipedia/wikipedia_search.feature" />
77
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
78
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
79
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="" />
80
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
81
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
82
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
83
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
84
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
85
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
86
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="$MODULE_DIR$/turnip" />
87
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
88
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
89
+ <RunnerSettings RunnerId="RubyRunner" />
90
+ <ConfigurationWrapper RunnerId="RubyRunner" />
91
+ <method />
92
+ </configuration>
93
+ <configuration default="false" name="Searching with selenium for a term with submit: acceptance_test (3)" type="CucumberRunConfigurationType" factoryName="Cucumber">
94
+ <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
95
+ <module name="acceptance_test" />
96
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
97
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
98
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
99
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
100
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
101
+ <envs>
102
+ <env name="JRUBY_OPTS" value="-X+O" />
103
+ </envs>
104
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
105
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
106
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
107
+ <COVERAGE_PATTERN ENABLED="true">
108
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
109
+ </COVERAGE_PATTERN>
110
+ </EXTENSION>
111
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
112
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
113
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
114
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
115
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/features/wikipedia/wikipedia_search.feature" />
116
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
117
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="^Searching with selenium for a term with submit$" />
118
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="" />
119
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
120
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
121
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
122
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
123
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
124
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
125
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="$MODULE_DIR$/turnip" />
126
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
127
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
128
+ <RunnerSettings RunnerId="RubyRunner" />
129
+ <ConfigurationWrapper RunnerId="RubyRunner" />
130
+ <method />
131
+ </configuration>
132
+ <configuration default="false" name="Searching with selenium for a term with submit: acceptance_test" type="CucumberRunConfigurationType" factoryName="Cucumber">
133
+ <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
134
+ <module name="acceptance_test" />
135
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
136
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
137
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
138
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
139
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
140
+ <envs>
141
+ <env name="JRUBY_OPTS" value="-X+O" />
142
+ </envs>
143
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
144
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
145
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
146
+ <COVERAGE_PATTERN ENABLED="true">
147
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
148
+ </COVERAGE_PATTERN>
149
+ </EXTENSION>
150
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
151
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
152
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
153
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
154
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/features/wikipedia/wikipedia_search.feature" />
155
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
156
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="^Searching with selenium for a term with submit$" />
157
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="" />
158
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
159
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
160
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
161
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
162
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
163
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
164
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="$MODULE_DIR$/turnip" />
165
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
166
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
167
+ <RunnerSettings RunnerId="RubyRunner" />
168
+ <ConfigurationWrapper RunnerId="RubyRunner" />
169
+ <method />
170
+ </configuration>
54
171
  <configuration default="false" name="turnip" type="RSpecRunConfigurationType" factoryName="RSpec">
55
172
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
56
173
  <module name="acceptance_test" />
@@ -123,7 +240,7 @@
123
240
  <ConfigurationWrapper RunnerId="RubyRunner" />
124
241
  <method />
125
242
  </configuration>
126
- <configuration default="false" name="Run spec 'wikipedia_search_with_config_spec': acceptance_test" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
243
+ <configuration default="false" name="Run spec 'wikipedia_search_spec': acceptance_test" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
127
244
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
128
245
  <module name="acceptance_test" />
129
246
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -143,7 +260,7 @@
143
260
  </EXTENSION>
144
261
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
145
262
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
146
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/wikipedia_search_with_config_spec.rb" />
263
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/wikipedia_search_spec.rb" />
147
264
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
148
265
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
149
266
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
@@ -161,7 +278,7 @@
161
278
  <ConfigurationWrapper RunnerId="RubyRunner" />
162
279
  <method />
163
280
  </configuration>
164
- <configuration default="false" name="wikipedia_search: acceptance_test (1)" type="CucumberRunConfigurationType" factoryName="Cucumber" temporary="true">
281
+ <configuration default="false" name="wikipedia_search_from_csv: acceptance_test" type="CucumberRunConfigurationType" factoryName="Cucumber" temporary="true">
165
282
  <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
166
283
  <module name="acceptance_test" />
167
284
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -172,7 +289,7 @@
172
289
  <envs>
173
290
  <env name="JRUBY_OPTS" value="-X+O" />
174
291
  </envs>
175
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
292
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
176
293
  <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
177
294
  <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
178
295
  <COVERAGE_PATTERN ENABLED="true">
@@ -180,27 +297,27 @@
180
297
  </COVERAGE_PATTERN>
181
298
  </EXTENSION>
182
299
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
183
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
300
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
184
301
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
185
302
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
186
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/features/wikipedia/wikipedia_search.feature" />
303
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/features/wikipedia/wikipedia_search_from_csv.feature" />
187
304
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
188
305
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
189
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
306
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="" />
190
307
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
191
308
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
192
309
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
193
310
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
194
311
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
195
312
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
196
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
313
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="$MODULE_DIR$/turnip" />
197
314
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
198
315
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
199
316
  <RunnerSettings RunnerId="RubyRunner" />
200
317
  <ConfigurationWrapper RunnerId="RubyRunner" />
201
318
  <method />
202
319
  </configuration>
203
- <configuration default="false" name=" uses selenium driver: acceptance_test" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
320
+ <configuration default="false" name="Run spec 'wikipedia_search_with_config_spec': acceptance_test" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
204
321
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
205
322
  <module name="acceptance_test" />
206
323
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -211,7 +328,7 @@
211
328
  <envs>
212
329
  <env name="JRUBY_OPTS" value="-X+O" />
213
330
  </envs>
214
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
331
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
215
332
  <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
216
333
  <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
217
334
  <COVERAGE_PATTERN ENABLED="true">
@@ -223,7 +340,7 @@
223
340
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/wikipedia_search_with_config_spec.rb" />
224
341
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
225
342
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
226
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE=" uses selenium driver" />
343
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
227
344
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
228
345
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
229
346
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
@@ -236,45 +353,6 @@
236
353
  <ConfigurationWrapper RunnerId="RubyRunner" />
237
354
  <method />
238
355
  </configuration>
239
- <configuration default="false" name="wikipedia_search_from_csv: acceptance_test" type="CucumberRunConfigurationType" factoryName="Cucumber" temporary="true">
240
- <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
241
- <module name="acceptance_test" />
242
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
243
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
244
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
245
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
246
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
247
- <envs>
248
- <env name="JRUBY_OPTS" value="-X+O" />
249
- </envs>
250
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
251
- <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
252
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
253
- <COVERAGE_PATTERN ENABLED="true">
254
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
255
- </COVERAGE_PATTERN>
256
- </EXTENSION>
257
- <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
258
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
259
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
260
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
261
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/features/wikipedia/wikipedia_search_from_csv.feature" />
262
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
263
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
264
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
265
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
266
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
267
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
268
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
269
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
270
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
271
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
272
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
273
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
274
- <RunnerSettings RunnerId="RubyRunner" />
275
- <ConfigurationWrapper RunnerId="RubyRunner" />
276
- <method />
277
- </configuration>
278
356
  <configuration default="false" name="Run spec 'wikipedia_search_with_pages_spec': acceptance_test" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
279
357
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
280
358
  <module name="acceptance_test" />
@@ -286,7 +364,7 @@
286
364
  <envs>
287
365
  <env name="JRUBY_OPTS" value="-X+O" />
288
366
  </envs>
289
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
367
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
290
368
  <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
291
369
  <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
292
370
  <COVERAGE_PATTERN ENABLED="true">
@@ -307,6 +385,30 @@
307
385
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
308
386
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
309
387
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
388
+ <RunnerSettings RunnerId="RubyDebugRunner" />
389
+ <RunnerSettings RunnerId="RubyRunner" />
390
+ <ConfigurationWrapper RunnerId="RubyDebugRunner" />
391
+ <ConfigurationWrapper RunnerId="RubyRunner" />
392
+ <method />
393
+ </configuration>
394
+ <configuration default="false" name="wikipedia_search_with_steps" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
395
+ <module name="acceptance_test" />
396
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
397
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/spec" />
398
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
399
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
400
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
401
+ <envs />
402
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
403
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
404
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
405
+ <COVERAGE_PATTERN ENABLED="true">
406
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
407
+ </COVERAGE_PATTERN>
408
+ </EXTENSION>
409
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
410
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/wikipedia_search_with_steps.rb" />
411
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
310
412
  <RunnerSettings RunnerId="RubyRunner" />
311
413
  <ConfigurationWrapper RunnerId="RubyRunner" />
312
414
  <method />
@@ -318,7 +420,7 @@
318
420
  <orderEntry type="sourceFolder" forTests="false" />
319
421
  <orderEntry type="library" scope="PROVIDED" name="activesupport (v4.1.6, RVM: ruby-1.9.3-p547 [acceptance_test]) [gem]" level="application" />
320
422
  <orderEntry type="library" scope="PROVIDED" name="builder (v3.2.2, RVM: ruby-1.9.3-p547 [acceptance_test]) [gem]" level="application" />
321
- <orderEntry type="library" scope="PROVIDED" name="bundler (v1.7.2, RVM: ruby-1.9.3-p547 [acceptance_test]) [gem]" level="application" />
423
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.7.3, RVM: ruby-1.9.3-p547 [acceptance_test]) [gem]" level="application" />
322
424
  <orderEntry type="library" scope="PROVIDED" name="capybara (v2.4.1, RVM: ruby-1.9.3-p547 [acceptance_test]) [gem]" level="application" />
323
425
  <orderEntry type="library" scope="PROVIDED" name="capybara-firebug (v2.1.0, RVM: ruby-1.9.3-p547 [acceptance_test]) [gem]" level="application" />
324
426
  <orderEntry type="library" scope="PROVIDED" name="capybara-webkit (v1.3.0, RVM: ruby-1.9.3-p547 [acceptance_test]) [gem]" level="application" />
@@ -21,7 +21,7 @@
21
21
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
22
22
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
23
23
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
24
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/features/wikipedia_search.feature" />
24
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/features/wikipedia_search.fea" />
25
25
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
26
26
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
27
27
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
data/CHANGES CHANGED
@@ -115,4 +115,8 @@
115
115
 
116
116
  == Version 1.5.0
117
117
 
118
+ * Refactor the code
119
+
120
+ == Version 1.5.1
121
+
118
122
  * Refactor the code
data/Rakefile CHANGED
@@ -41,3 +41,8 @@ end
41
41
  # system "cp -R ~/debugger-ruby_core_source/lib $GEM_HOME/gems/debugger-ruby_core_source-1.2.3"
42
42
  # end
43
43
 
44
+ task :turnip do
45
+ ARGV.shift
46
+
47
+ system "bundle exec rspec -r turnip/rspec #{ARGV.join(' ')}"
48
+ end
@@ -8,7 +8,7 @@ require 'acceptance_test/gherkin_helper'
8
8
  data_reader = lambda {|source_path| CSV.read(File.expand_path(source_path)) }
9
9
  GherkinHelper.instance.enable_external_source data_reader
10
10
 
11
- acceptance_test = AcceptanceTest.new false
11
+ acceptance_test = AcceptanceTest.instance
12
12
 
13
13
  Before do |scenario|
14
14
  config_name = File.expand_path("spec/acceptance_config.yml")
@@ -1,16 +1,15 @@
1
1
  require 'uri'
2
2
  require 'fileutils'
3
+ require 'singleton'
3
4
 
4
5
  require 'capybara'
5
6
  require "capybara/dsl"
6
7
  require 'active_support/core_ext/hash'
7
8
 
8
9
  class AcceptanceTest
9
- attr_reader :config
10
+ include Singleton
10
11
 
11
- def initialize rspec=true
12
- configure_rspec if rspec
13
- end
12
+ attr_reader :config
14
13
 
15
14
  def configure config={}
16
15
  if config
@@ -86,7 +85,7 @@ class AcceptanceTest
86
85
  acceptance_test = self
87
86
 
88
87
  acceptance_test_lambda = lambda do
89
- acceptance_test.configure_rspec self
88
+ acceptance_test.configure_rspec self.parent_groups.last
90
89
  end
91
90
 
92
91
  RSpec.shared_context name do
@@ -0,0 +1,41 @@
1
+ require 'turnip/capybara'
2
+ require 'turnip/rspec'
3
+ require 'csv'
4
+ require 'yaml'
5
+ require 'acceptance_test'
6
+
7
+ require 'acceptance_test/gherkin_helper'
8
+
9
+ class TurnipHelper
10
+ attr_reader :acceptance_test
11
+
12
+ def initialize
13
+ @acceptance_test = AcceptanceTest.instance
14
+
15
+ RSpec.configure do |config|
16
+ config.include Capybara::DSL
17
+ end
18
+
19
+ enable_external_source
20
+ end
21
+
22
+ def register_steps path, class_name, tag, shared_group
23
+ require path
24
+
25
+ clazz = Object.const_get(class_name)
26
+
27
+ RSpec.configure do |config|
28
+ config.include clazz, tag => true
29
+ end
30
+
31
+ acceptance_test.create_shared_context shared_group
32
+ end
33
+
34
+ private
35
+
36
+ def enable_external_source # enable external source for gherkin
37
+ data_reader = lambda {|source_path| CSV.read(File.expand_path(source_path)) }
38
+
39
+ GherkinHelper.instance.enable_external_source data_reader
40
+ end
41
+ end
@@ -1,3 +1,3 @@
1
1
  class AcceptanceTest
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
3
3
  end
@@ -0,0 +1,89 @@
1
+ require 'turnip/define'
2
+
3
+ # @acceptance_test = AcceptanceTest.new
4
+ #
5
+ # singleton_class.send :attr_reader, :acceptance_test
6
+ #
7
+ # step "I am within wikipedia.com" do
8
+ # config_name = File.expand_path("spec/acceptance_config.yml")
9
+ # config = HashWithIndifferentAccess.new(YAML.load_file(config_name))
10
+ #
11
+ # WikipediaSteps.acceptance_test.configure config
12
+ # end
13
+ # attr_reader :acceptance_test
14
+
15
+ # before do
16
+ # p "before"
17
+ # acceptance_test = AcceptanceTest.new true, rspec_scope
18
+ #
19
+ # config_name = File.expand_path("spec/acceptance_config.yml")
20
+ # config = HashWithIndifferentAccess.new(YAML.load_file(config_name))
21
+ #
22
+ # acceptance_test.configure config
23
+ # end
24
+ #
25
+ # after do
26
+ # p "after"
27
+ # end
28
+
29
+ module Turnip
30
+ module Define
31
+ def before &block
32
+ send(:define_method, "before", &block) if block
33
+ end
34
+
35
+ def after &block
36
+ send(:define_method, "after", &block) if block
37
+ end
38
+ end
39
+ end
40
+
41
+ module Turnip
42
+ module RSpec
43
+ module Execute
44
+ def run_before rspec_scope
45
+ self.class.send(:define_method, :rspec_scope, lambda { rspec_scope })
46
+
47
+ before
48
+ end
49
+
50
+ def run_after
51
+ after
52
+ end
53
+ end
54
+
55
+ class << self
56
+ def run(feature_file)
57
+ Turnip::Builder.build(feature_file).features.each do |feature|
58
+ ::RSpec.describe feature.name, feature.metadata_hash do
59
+ rspec_scope = self
60
+ before do
61
+ run_before rspec_scope
62
+ example = Turnip::RSpec.fetch_current_example(self)
63
+ # This is kind of a hack, but it will make RSpec throw way nicer exceptions
64
+ example.metadata[:file_path] ||= feature_file
65
+
66
+ feature.backgrounds.map(&:steps).flatten.each do |step|
67
+ run_step(feature_file, step)
68
+ end
69
+ end
70
+ feature.scenarios.each do |scenario|
71
+ instance_eval <<-EOS, feature_file, scenario.line
72
+ describe scenario.name, scenario.metadata_hash do it(scenario.steps.map(&:to_s).join(' -> ')) do
73
+ scenario.steps.each do |step|
74
+ run_step(feature_file, step)
75
+ end
76
+ end
77
+ end
78
+ EOS
79
+ end
80
+ after do
81
+ run_after
82
+ end
83
+ end
84
+ end
85
+ end
86
+ end
87
+
88
+ end
89
+ end
@@ -1,20 +1,7 @@
1
- require 'csv'
2
- require 'yaml'
3
-
4
- require 'acceptance_test'
5
-
6
1
  module WikipediaSteps
7
- attr_reader :acceptance_test
8
-
9
- def initialize
10
- @acceptance_test = AcceptanceTest.new
11
- end
12
2
 
13
3
  step "I am within wikipedia.com" do
14
- config_name = File.expand_path("spec/acceptance_config.yml")
15
- config = HashWithIndifferentAccess.new(YAML.load_file(config_name))
16
-
17
- acceptance_test.configure config
4
+ self.class.include_context "WikipediaAcceptanceTest"
18
5
  end
19
6
 
20
7
  step "I am on wikipedia.com" do
@@ -13,6 +13,7 @@ Feature: Using Wikipedia
13
13
  Then I should see results: "Capybara"
14
14
 
15
15
  @webkit
16
+ @wikipedia
16
17
  Scenario: Searching with selenium for a term with submit
17
18
 
18
19
  Given I am on wikipedia.com
@@ -21,6 +22,7 @@ Feature: Using Wikipedia
21
22
  Then I should see results: "Capybara"
22
23
 
23
24
  @poltergeist
25
+ @wikipedia
24
26
  Scenario: Searching with selenium for a term with submit
25
27
 
26
28
  Given I am on wikipedia.com
@@ -1,12 +1,14 @@
1
+ require 'rspec/expectations'
1
2
  require 'acceptance_test/page_set'
2
3
 
3
4
  require 'wikipedia/main_page'
4
5
 
5
6
  class WikipediaPageSet < PageSet
6
7
  include Capybara::DSL
8
+ include RSpec::Matchers
7
9
 
8
10
  def initialize session=nil
9
- @page = session
11
+ @session = session
10
12
 
11
13
  @main_page = MainPage.new self
12
14
 
@@ -1,20 +1,12 @@
1
- require 'turnip/capybara'
2
- require 'turnip/rspec'
1
+ require 'acceptance_test/turnip_helper'
3
2
 
4
- RSpec.configure do |config|
5
- config.include Capybara::DSL
6
- end
3
+ helper = TurnipHelper.new
7
4
 
8
- require 'features/steps/wikipedia_steps'
5
+ config_name = File.expand_path("spec/acceptance_config.yml")
6
+ config = HashWithIndifferentAccess.new(YAML.load_file(config_name))
9
7
 
10
- RSpec.configure do |config|
11
- config.include WikipediaSteps, :wikipedia => true
12
- end
8
+ helper.acceptance_test.configure config
13
9
 
14
- require 'acceptance_test/gherkin_helper'
10
+ helper.register_steps 'features/steps/wikipedia_steps', 'WikipediaSteps', :wikipedia, "WikipediaAcceptanceTest"
15
11
 
16
- # enable external source for gherkin
17
-
18
- data_reader = lambda {|source_path| CSV.read(File.expand_path(source_path)) }
19
- GherkinHelper.instance.enable_external_source data_reader
20
12
 
@@ -1,6 +1,7 @@
1
1
  require 'acceptance_test'
2
2
 
3
- acceptance_test = AcceptanceTest.new
3
+ acceptance_test = AcceptanceTest.instance
4
+ acceptance_test.configure_rspec
4
5
  acceptance_test.configure({webapp_url: "http://www.wikipedia.org", timeout_in_seconds: 10})
5
6
 
6
7
  RSpec.describe 'Wikipedia Search' do
@@ -4,7 +4,7 @@ require 'yaml'
4
4
  config_name = File.expand_path("spec/acceptance_config.yml")
5
5
  config = config_name ? HashWithIndifferentAccess.new(YAML.load_file(config_name)) : {}
6
6
 
7
- acceptance_test = AcceptanceTest.new false
7
+ acceptance_test = AcceptanceTest.instance
8
8
  acceptance_test.configure config
9
9
 
10
10
  acceptance_test.create_shared_context "WikipediaAcceptanceTest"
@@ -1,6 +1,7 @@
1
1
  require 'acceptance_test'
2
2
 
3
- acceptance_test = AcceptanceTest.new
3
+ acceptance_test = AcceptanceTest.instance
4
+ acceptance_test.configure_rspec
4
5
  acceptance_test.configure({webapp_url: "http://www.wikipedia.org", timeout_in_seconds: 10})
5
6
 
6
7
  $: << File.expand_path('spec/support')
data/turnip ADDED
@@ -0,0 +1 @@
1
+ system "bundle exec rspec -r turnip/rspec #{ARGV.join(' ')}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acceptance_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-03 00:00:00.000000000 Z
11
+ date: 2014-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gemspec_deps_gen
@@ -75,9 +75,11 @@ files:
75
75
  - lib/acceptance_test/page.rb
76
76
  - lib/acceptance_test/page_set.rb
77
77
  - lib/acceptance_test/screenshot_maker.rb
78
+ - lib/acceptance_test/turnip_helper.rb
78
79
  - lib/acceptance_test/version.rb
79
80
  - spec/acceptance_config.yml
80
81
  - spec/features/data.csv
82
+ - spec/features/steps/hook.rb
81
83
  - spec/features/steps/wikipedia_steps.rb
82
84
  - spec/features/wikipedia_search.feature
83
85
  - spec/features/wikipedia_search_from_csv.feature
@@ -88,6 +90,7 @@ files:
88
90
  - spec/wikipedia_search_with_config_spec.rb
89
91
  - spec/wikipedia_search_with_pages_spec.rb
90
92
  - spec/wikipedia_search_with_steps.rb
93
+ - turnip
91
94
  homepage: http://github.com/shvets/acceptance_test
92
95
  licenses:
93
96
  - MIT
@@ -119,6 +122,7 @@ test_files:
119
122
  - features/wikipedia/wikipedia_search_from_csv.feature
120
123
  - spec/acceptance_config.yml
121
124
  - spec/features/data.csv
125
+ - spec/features/steps/hook.rb
122
126
  - spec/features/steps/wikipedia_steps.rb
123
127
  - spec/features/wikipedia_search.feature
124
128
  - spec/features/wikipedia_search_from_csv.feature