acceptance_test 1.4.9 → 1.5.0

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
- MjdlNmU2N2Y0NWE2NWQ0YWYwMTkyYzQ3ZTZlMTk3MmY0ZTE0MTZmNQ==
4
+ M2E0ZDNiNWM1NDFiMzI2OWI3ZmU1Y2VmZDQ5YmYyYzkxMWYzMzEyMw==
5
5
  data.tar.gz: !binary |-
6
- ZWMzNjM4MmEyNzNkOTlkZmQwOGExYjZiYTQwZGJiMTI5NTdiNWNkYw==
6
+ OWNiMDE0NWZlMDdlZDgyZGE5MDM2ZWE5NWY0NjI4OGNlOTg1NDQ2Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjVmNjEyYmU1ZjA0NTA2Mjc5OGEwNTdhYTVlMjBiNDljNzlkNDQwNzI1MDUx
10
- NGJkYTY3NWJhNWIwNTFjNjg1Y2U0MmI3OWFhMDVhZjUzZTEyNGRmMGIwNjVm
11
- ZmUwMjczYjAwOGFjOGYxNzM4N2U4NTdjODVhNjhjZWIzZTQ4OWI=
9
+ ZGU3MGY2ZDczNGI0YmIzNGZiYWUwMzkyYTExOTNhMTZmYmQ2MzliZTg0ZWRi
10
+ MzkwYjQ5N2MxZDFkOTJjNjgwMTFiMGMzMjI3ZmQwMTQ5NjViM2Y5OGExMjlk
11
+ MmRkMTYyYzkwZTBmODM0NmQ5ZWEwZjlhNmNjODgwNmU3ZTk4YzA=
12
12
  data.tar.gz: !binary |-
13
- MWJjZTM0ZmRmOTc2ODc0NjBjNzNhMzI2YTE0NjM2ODk0YmE4M2ZlNWRiYWM1
14
- YmEyNzBiN2M2MjJiZTJkNDNjNmZkODcxNjRhNjMyNzFlZDRhMzhlZmQ3ZGRi
15
- NmMwNDlhZmVhZGQ4NDlkYTVjMWQ2OWUzMDAxMjJjYjk4OTU2MTE=
13
+ NWIwN2JhZmIxMmJlNTQ3ODc0N2JkOTdjNWZkZTFmODJkMTk0ZTY1YmQwNGVk
14
+ NDcwZDhlMzE3NjEyMmJmNTcyYjdhNzMyZjgyMzBkZDgwNWYwY2YyZTVlYWFk
15
+ N2YxY2ZlMGE2N2I0MmUxN2NhMTFkYThlMGY2NDk1MGVlOWY0ZTg=
@@ -123,7 +123,45 @@
123
123
  <ConfigurationWrapper RunnerId="RubyRunner" />
124
124
  <method />
125
125
  </configuration>
126
- <configuration default="false" name="wikipedia_search_from_csv: acceptance_test (1)" type="CucumberRunConfigurationType" factoryName="Cucumber" temporary="true">
126
+ <configuration default="false" name="Run spec 'wikipedia_search_with_config_spec': acceptance_test" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
127
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
128
+ <module name="acceptance_test" />
129
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
130
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
131
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
132
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
133
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
134
+ <envs>
135
+ <env name="JRUBY_OPTS" value="-X+O" />
136
+ </envs>
137
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
138
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
139
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
140
+ <COVERAGE_PATTERN ENABLED="true">
141
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
142
+ </COVERAGE_PATTERN>
143
+ </EXTENSION>
144
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
145
+ <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" />
147
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
148
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
149
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
150
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
151
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
152
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
153
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
154
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
155
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
156
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
157
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
158
+ <RunnerSettings RunnerId="RubyDebugRunner" />
159
+ <RunnerSettings RunnerId="RubyRunner" />
160
+ <ConfigurationWrapper RunnerId="RubyDebugRunner" />
161
+ <ConfigurationWrapper RunnerId="RubyRunner" />
162
+ <method />
163
+ </configuration>
164
+ <configuration default="false" name="wikipedia_search: acceptance_test (1)" type="CucumberRunConfigurationType" factoryName="Cucumber" temporary="true">
127
165
  <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
128
166
  <module name="acceptance_test" />
129
167
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -145,7 +183,7 @@
145
183
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
146
184
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
147
185
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
148
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/features/wikipedia/wikipedia_search_from_csv.feature" />
186
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/features/wikipedia/wikipedia_search.feature" />
149
187
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
150
188
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
151
189
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
@@ -162,43 +200,7 @@
162
200
  <ConfigurationWrapper RunnerId="RubyRunner" />
163
201
  <method />
164
202
  </configuration>
165
- <configuration default="false" name="Run spec 'wikipedia_search_spec': acceptance_test" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
166
- <predefined_log_file id="RUBY_RSPEC" enabled="true" />
167
- <module name="acceptance_test" />
168
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
169
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
170
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
171
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
172
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
173
- <envs>
174
- <env name="JRUBY_OPTS" value="-X+O" />
175
- </envs>
176
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
177
- <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
178
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
179
- <COVERAGE_PATTERN ENABLED="true">
180
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
181
- </COVERAGE_PATTERN>
182
- </EXTENSION>
183
- <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
184
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
185
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/wikipedia_search_spec.rb" />
186
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
187
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
188
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
189
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
190
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
191
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
192
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
193
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
194
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
195
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
196
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
197
- <RunnerSettings RunnerId="RubyRunner" />
198
- <ConfigurationWrapper RunnerId="RubyRunner" />
199
- <method />
200
- </configuration>
201
- <configuration default="false" name="Run spec 'wikipedia_search_with_config_spec': acceptance_test" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
203
+ <configuration default="false" name=" uses selenium driver: acceptance_test" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
202
204
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
203
205
  <module name="acceptance_test" />
204
206
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -221,7 +223,7 @@
221
223
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/wikipedia_search_with_config_spec.rb" />
222
224
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
223
225
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
224
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
226
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE=" uses selenium driver" />
225
227
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
226
228
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
227
229
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
@@ -230,13 +232,11 @@
230
232
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
231
233
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
232
234
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
233
- <RunnerSettings RunnerId="RubyDebugRunner" />
234
235
  <RunnerSettings RunnerId="RubyRunner" />
235
- <ConfigurationWrapper RunnerId="RubyDebugRunner" />
236
236
  <ConfigurationWrapper RunnerId="RubyRunner" />
237
237
  <method />
238
238
  </configuration>
239
- <configuration default="false" name="Searching with selenium for a term with submit: acceptance_test" type="CucumberRunConfigurationType" factoryName="Cucumber" temporary="true">
239
+ <configuration default="false" name="wikipedia_search_from_csv: acceptance_test" type="CucumberRunConfigurationType" factoryName="Cucumber" temporary="true">
240
240
  <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
241
241
  <module name="acceptance_test" />
242
242
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -258,9 +258,9 @@
258
258
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
259
259
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
260
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.feature" />
261
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/features/wikipedia/wikipedia_search_from_csv.feature" />
262
262
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
263
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="^Searching with selenium for a term with submit$" />
263
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
264
264
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
265
265
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
266
266
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
@@ -271,20 +271,18 @@
271
271
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
272
272
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
273
273
  <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
274
- <RunnerSettings RunnerId="RubyDebugRunner" />
275
274
  <RunnerSettings RunnerId="RubyRunner" />
276
- <ConfigurationWrapper RunnerId="RubyDebugRunner" />
277
275
  <ConfigurationWrapper RunnerId="RubyRunner" />
278
276
  <method />
279
277
  </configuration>
280
- <configuration default="false" name="wikipedia_search: acceptance_test (1)" type="CucumberRunConfigurationType" factoryName="Cucumber" temporary="true">
281
- <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
278
+ <configuration default="false" name="Run spec 'wikipedia_search_with_pages_spec': acceptance_test" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
279
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
282
280
  <module name="acceptance_test" />
283
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
284
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
285
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
286
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
287
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
281
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
282
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
283
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
284
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
285
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
288
286
  <envs>
289
287
  <env name="JRUBY_OPTS" value="-X+O" />
290
288
  </envs>
@@ -296,22 +294,19 @@
296
294
  </COVERAGE_PATTERN>
297
295
  </EXTENSION>
298
296
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
299
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
300
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
301
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
302
- <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_TAGS_FILTER" VALUE="" />
304
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
305
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
306
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
307
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
308
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
309
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
310
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
311
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
312
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
313
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
314
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
297
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
298
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/wikipedia_search_with_pages_spec.rb" />
299
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
300
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
301
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
302
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
303
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
304
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
305
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
306
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
307
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
308
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
309
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
315
310
  <RunnerSettings RunnerId="RubyRunner" />
316
311
  <ConfigurationWrapper RunnerId="RubyRunner" />
317
312
  <method />
data/CHANGES CHANGED
@@ -111,4 +111,8 @@
111
111
 
112
112
  == Version 1.4.9
113
113
 
114
- * refactor the code
114
+ * Refactor the code
115
+
116
+ == Version 1.5.0
117
+
118
+ * Refactor the code
@@ -8,13 +8,13 @@ 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
11
+ acceptance_test = AcceptanceTest.new false
12
12
 
13
13
  Before do |scenario|
14
14
  config_name = File.expand_path("spec/acceptance_config.yml")
15
15
  config = HashWithIndifferentAccess.new(YAML.load_file(config_name))
16
16
 
17
- acceptance_test.configure config, false
17
+ acceptance_test.configure config
18
18
 
19
19
  acceptance_test.before acceptance_test.metadata_from_scenario(scenario)
20
20
  end
@@ -8,7 +8,11 @@ require 'active_support/core_ext/hash'
8
8
  class AcceptanceTest
9
9
  attr_reader :config
10
10
 
11
- def configure config={}, rspec=true
11
+ def initialize rspec=true
12
+ configure_rspec if rspec
13
+ end
14
+
15
+ def configure config={}
12
16
  if config
13
17
  @config = config.kind_of?(HashWithIndifferentAccess) ? config : HashWithIndifferentAccess.new(config)
14
18
  else
@@ -44,7 +48,7 @@ class AcceptanceTest
44
48
  ;
45
49
  end
46
50
 
47
- configure_rspec if rspec
51
+ Capybara.app_host = config[:webapp_url]
48
52
  end
49
53
 
50
54
  def before metadata={}
@@ -55,8 +59,6 @@ class AcceptanceTest
55
59
 
56
60
  select_driver driver
57
61
  end
58
-
59
- Capybara.app_host = config[:webapp_url]
60
62
  end
61
63
 
62
64
  def after metadata={}, exception=nil, page=nil
@@ -115,6 +117,11 @@ class AcceptanceTest
115
117
 
116
118
  driver = metadata[:driver] if driver.nil?
117
119
 
120
+ self.class.supported_drivers.each do |supported_driver|
121
+ driver = supported_driver if metadata[supported_driver]
122
+ break if driver
123
+ end
124
+
118
125
  driver = :webkit if driver.nil?
119
126
 
120
127
  driver
@@ -15,20 +15,23 @@ class PageSet
15
15
  self.instance_eval &code
16
16
  end
17
17
 
18
- def self.delegate_to_pages *pages
18
+ def delegate_to_pages *pages
19
19
  pages.each do |page|
20
- class_name = camelize(page.to_s)
21
- clazz = Object.const_get(class_name)
20
+ delegate_to_page page
21
+ end
22
+ end
22
23
 
23
- attr_reader page
24
+ def delegate_to_page page
25
+ self.class.send :attr_reader, page
24
26
 
25
- def_delegators page, *(clazz.instance_methods - Page.instance_methods)
27
+ clazz = self.send(page).class
28
+
29
+ self.class.def_delegators page, *(clazz.instance_methods - Page.instance_methods)
26
30
  end
27
- end
28
31
 
29
32
  private
30
33
 
31
- def self.camelize string
34
+ def camelize string
32
35
  string.split("_").each {|s| s.capitalize! }.join("")
33
36
  end
34
37
  end
@@ -1,3 +1,3 @@
1
1
  class AcceptanceTest
2
- VERSION = "1.4.9"
2
+ VERSION = "1.5.0"
3
3
  end
@@ -2,25 +2,19 @@ require 'csv'
2
2
  require 'yaml'
3
3
 
4
4
  require 'acceptance_test'
5
- require 'acceptance_test/gherkin_helper'
6
5
 
7
- def setup_env
8
- data_reader = lambda {|source_path| CSV.read(File.expand_path(source_path)) }
9
- GherkinHelper.instance.enable_external_source data_reader
10
-
11
- config_name = File.expand_path("spec/acceptance_config.yml")
12
- config = HashWithIndifferentAccess.new(YAML.load_file(config_name))
13
-
14
- acceptance_test = AcceptanceTest.new
15
- acceptance_test.configure config
16
- end
6
+ module WikipediaSteps
7
+ attr_reader :acceptance_test
17
8
 
18
- setup_env
9
+ def initialize
10
+ @acceptance_test = AcceptanceTest.new
11
+ end
19
12
 
20
- module WikipediaSteps
21
13
  step "I am within wikipedia.com" do
22
- # Capybara.app_host = "http://wikipedia.com"
23
- # Capybara.default_driver = :selenium
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
24
18
  end
25
19
 
26
20
  step "I am on wikipedia.com" do
@@ -4,6 +4,7 @@ Feature: Using Wikipedia
4
4
  Given I am within wikipedia.com
5
5
 
6
6
  @selenium
7
+ @wikipedia
7
8
  Scenario: Searching with selenium for a term with submit
8
9
 
9
10
  Given I am on wikipedia.com
@@ -4,6 +4,7 @@ Feature: Using Wikipedia
4
4
  Given I am within wikipedia.com
5
5
 
6
6
  @selenium
7
+ @wikipedia
7
8
  Scenario Outline: Searching with selenium for a term with submit
8
9
 
9
10
  Given I am on wikipedia.com
@@ -0,0 +1,13 @@
1
+ class MainPage < Page
2
+ def visit_page root
3
+ session.visit root
4
+ end
5
+
6
+ def enter_search_request request
7
+ session.fill_in "searchInput", :with => request
8
+ end
9
+
10
+ def click_search_button
11
+ session.find(".formBtn", match: :first).click
12
+ end
13
+ end
@@ -0,0 +1,16 @@
1
+ require 'acceptance_test/page_set'
2
+
3
+ require 'wikipedia/main_page'
4
+
5
+ class WikipediaPageSet < PageSet
6
+ include Capybara::DSL
7
+
8
+ def initialize session=nil
9
+ @page = session
10
+
11
+ @main_page = MainPage.new self
12
+
13
+ delegate_to_pages :main_page
14
+ end
15
+
16
+ end
@@ -1,13 +1,20 @@
1
1
  require 'turnip/capybara'
2
2
  require 'turnip/rspec'
3
3
 
4
- require 'features/steps/wikipedia_steps'
5
-
6
4
  RSpec.configure do |config|
7
5
  config.include Capybara::DSL
8
6
  end
9
7
 
8
+ require 'features/steps/wikipedia_steps'
9
+
10
10
  RSpec.configure do |config|
11
- config.include WikipediaSteps
12
- # config.include WikipediaSteps, :web => true
11
+ config.include WikipediaSteps, :wikipedia => true
13
12
  end
13
+
14
+ require 'acceptance_test/gherkin_helper'
15
+
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
+
@@ -4,8 +4,8 @@ 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
8
- acceptance_test.configure config, false
7
+ acceptance_test = AcceptanceTest.new false
8
+ acceptance_test.configure config
9
9
 
10
10
  acceptance_test.create_shared_context "WikipediaAcceptanceTest"
11
11
 
@@ -0,0 +1,30 @@
1
+ require 'acceptance_test'
2
+
3
+ acceptance_test = AcceptanceTest.new
4
+ acceptance_test.configure({webapp_url: "http://www.wikipedia.org", timeout_in_seconds: 10})
5
+
6
+ $: << File.expand_path('spec/support')
7
+
8
+ require 'wikipedia/wikipedia_page_set'
9
+
10
+ RSpec.describe 'Wikipedia Search' do
11
+
12
+ let(:page_set) { WikipediaPageSet.new(page) }
13
+
14
+ before do
15
+ puts "Using driver: #{Capybara.current_driver}."
16
+ puts "Default wait time: #{Capybara.default_wait_time}."
17
+ end
18
+
19
+ it "searches on wikipedia web site", driver: :selenium do
20
+ page_set.execute do
21
+ visit_page "/"
22
+
23
+ enter_search_request "Capybara"
24
+
25
+ click_search_button
26
+
27
+ expect(page).to have_content "Hydrochoerus hydrochaeris"
28
+ end
29
+ end
30
+ end
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.4.9
4
+ version: 1.5.0
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-02 00:00:00.000000000 Z
11
+ date: 2014-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gemspec_deps_gen
@@ -81,9 +81,12 @@ files:
81
81
  - spec/features/steps/wikipedia_steps.rb
82
82
  - spec/features/wikipedia_search.feature
83
83
  - spec/features/wikipedia_search_from_csv.feature
84
+ - spec/support/wikipedia/main_page.rb
85
+ - spec/support/wikipedia/wikipedia_page_set.rb
84
86
  - spec/turnip_helper.rb
85
87
  - spec/wikipedia_search_spec.rb
86
88
  - spec/wikipedia_search_with_config_spec.rb
89
+ - spec/wikipedia_search_with_pages_spec.rb
87
90
  - spec/wikipedia_search_with_steps.rb
88
91
  homepage: http://github.com/shvets/acceptance_test
89
92
  licenses:
@@ -119,7 +122,10 @@ test_files:
119
122
  - spec/features/steps/wikipedia_steps.rb
120
123
  - spec/features/wikipedia_search.feature
121
124
  - spec/features/wikipedia_search_from_csv.feature
125
+ - spec/support/wikipedia/main_page.rb
126
+ - spec/support/wikipedia/wikipedia_page_set.rb
122
127
  - spec/turnip_helper.rb
123
128
  - spec/wikipedia_search_spec.rb
124
129
  - spec/wikipedia_search_with_config_spec.rb
130
+ - spec/wikipedia_search_with_pages_spec.rb
125
131
  - spec/wikipedia_search_with_steps.rb