acceptance_test 1.8.4 → 1.8.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NzY3NjY0MGEwZjI4MzAwZTViNWYyNTZmN2Y4ZDdiMTg4NzYxYzhiOQ==
5
- data.tar.gz: !binary |-
6
- YTk1MmMzMjM5YWViOWUxNDUyYzgxNTJiMmM2MGRhMmY4OTZmZjU3OQ==
2
+ SHA1:
3
+ metadata.gz: e23c1f7e1bf3a164414100e0c1ac5531090d9ebd
4
+ data.tar.gz: 6d8964d4ea66bbf23741186d310661ff4b34e974
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZWE4YmVhYmJjZDFlNzc3N2UyNDg4MmJmNzU1NWQ5YWZiZDUzMjFlMDYyNzI4
10
- MDViZDdkZjFlOTM1YWExOTIwNjUxNjQ5YzJmMGMyMjcwNmJiMDhjMGQ1OGVl
11
- ZTE0N2NkMGFkMDM2MzNkNzExNjFiNDYzMThmYjM0MWZmZThkZWQ=
12
- data.tar.gz: !binary |-
13
- ZGE1MTUwNThiYjNlZDAwYzQ4M2Y3OTk1ODg5YzgzZjhjZjhkODA5OTU1Njkx
14
- YTQ5MmVkMThkOThlZWRkMDBjMTQ1ZGI5ZTU3ODhmZGExOTBiNTk4NDRiYzJk
15
- M2VhYzdkNDIwZTc1MzQ3YzJkZjE4OTZkNThiNDBlNmE0ZDRmNTg=
6
+ metadata.gz: 5d63c74b40581b6e7186fd4a8d2726bf1d6ad6dd96d432a3ff16ffa9b5694746002e3e539fd2e327ad4f17ea2b83f53b0eef2c8689aba5701452a87158411bc7
7
+ data.tar.gz: 4f6b475247bcc2c8c84c5e647c896a974e41ed07541b07ce2fd486be85c6624c32dc5f1ebaac8d346731cede34ab75d8518d7cc10f9a21388b896406dc287a28
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"><RakeGroup description="" fullCmd="" taksId="rspec"><RakeTask description="Run turnip acceptance tests" fullCmd="rspec:acceptance" taksId="acceptance" /></RakeGroup><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="steps_diff" taksId="steps_diff" /><RakeTask description="" fullCmd="steps_gen" taksId="steps_gen" /><RakeTask description="" fullCmd="uninstall" taksId="uninstall" /></RakeGroup></Settings>
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeGroup description="" fullCmd="" taksId="rspec"><RakeTask description="Run turnip acceptance tests" fullCmd="rspec:acceptance" taksId="acceptance" /></RakeGroup><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="build" taksId="build" /><RakeTask description="" fullCmd="diff_steps" taksId="diff_steps" /><RakeTask description="" fullCmd="gen" taksId="gen" /><RakeTask description="" fullCmd="gen_feature" taksId="gen_feature" /><RakeTask description="" fullCmd="gen_steps" taksId="gen_steps" /><RakeTask description="" fullCmd="install" taksId="install" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeTask description="" fullCmd="uninstall" taksId="uninstall" /></RakeGroup></Settings>
@@ -10,137 +10,18 @@
10
10
  </facet>
11
11
  </component>
12
12
  <component name="ModuleRunConfigurationManager">
13
- <configuration default="false" name="wikipedia_search: acceptance_test" type="CucumberRunConfigurationType" factoryName="Cucumber">
14
- <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
15
- <module name="acceptance_test" />
16
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
17
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$/spec" />
18
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
19
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
20
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
21
- <envs>
22
- <env name="JRUBY_OPTS" value="-X+O" />
23
- </envs>
24
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
25
- <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
26
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
27
- <COVERAGE_PATTERN ENABLED="true">
28
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
29
- </COVERAGE_PATTERN>
30
- </EXTENSION>
31
- <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
32
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
33
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
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.fea" />
36
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
37
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
38
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
39
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
40
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
41
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
42
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
43
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
44
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
45
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
46
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
47
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
48
- <RunnerSettings RunnerId="RubyDebugRunner" />
49
- <RunnerSettings RunnerId="RubyRunner" />
50
- <ConfigurationWrapper RunnerId="RubyDebugRunner" />
51
- <ConfigurationWrapper RunnerId="RubyRunner" />
52
- <method />
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" />
13
+ <configuration default="false" name="Run spec 'wikipedia_search_with_pages_spec': acceptance_test" type="RSpecRunConfigurationType" factoryName="RSpec">
14
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
134
15
  <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" />
16
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
17
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
18
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
19
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
20
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
140
21
  <envs>
141
22
  <env name="JRUBY_OPTS" value="-X+O" />
142
23
  </envs>
143
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
24
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
144
25
  <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
145
26
  <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
146
27
  <COVERAGE_PATTERN ENABLED="true">
@@ -148,36 +29,35 @@
148
29
  </COVERAGE_PATTERN>
149
30
  </EXTENSION>
150
31
  <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" />
32
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
33
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/acceptance/search_with_pages_spec.rb" />
34
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
35
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
36
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
37
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
38
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
39
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
40
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
41
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
42
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
43
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
44
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
167
45
  <RunnerSettings RunnerId="RubyRunner" />
168
46
  <ConfigurationWrapper RunnerId="RubyRunner" />
169
47
  <method />
170
48
  </configuration>
171
- <configuration default="false" name="search_with_examples_from_csv" type="RSpecRunConfigurationType" factoryName="RSpec">
49
+ <configuration default="false" name="Run spec 'wikipedia_search_with_steps_spec': acceptance_test" type="RSpecRunConfigurationType" factoryName="RSpec">
172
50
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
173
51
  <module name="acceptance_test" />
174
52
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
175
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
53
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
176
54
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
177
55
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
178
56
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
179
- <envs />
180
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
57
+ <envs>
58
+ <env name="JRUBY_OPTS" value="-X+O" />
59
+ </envs>
60
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
181
61
  <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
182
62
  <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
183
63
  <COVERAGE_PATTERN ENABLED="true">
@@ -186,7 +66,7 @@
186
66
  </EXTENSION>
187
67
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
188
68
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
189
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/features/search_with_examples_from_csv.feature" />
69
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/acceptance/search_with_example_steps_spec.rb" />
190
70
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
191
71
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
192
72
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
@@ -222,7 +102,7 @@
222
102
  </EXTENSION>
223
103
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
224
104
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
225
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/features/search_with_drivers.feature" />
105
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/features/search_with_drivers.turnip" />
226
106
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
227
107
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
228
108
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
@@ -240,7 +120,7 @@
240
120
  <ConfigurationWrapper RunnerId="RubyRunner" />
241
121
  <method />
242
122
  </configuration>
243
- <configuration default="false" name="search_with_pages" type="RSpecRunConfigurationType" factoryName="RSpec">
123
+ <configuration default="false" name="search_with_examples_from_csv" type="RSpecRunConfigurationType" factoryName="RSpec">
244
124
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
245
125
  <module name="acceptance_test" />
246
126
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -258,7 +138,7 @@
258
138
  </EXTENSION>
259
139
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
260
140
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
261
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/features/search_with_pages.feature" />
141
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/features/search_with_examples_from_csv.feature" />
262
142
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
263
143
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
264
144
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
@@ -276,7 +156,7 @@
276
156
  <ConfigurationWrapper RunnerId="RubyRunner" />
277
157
  <method />
278
158
  </configuration>
279
- <configuration default="false" name="search_with_scenario_outline" type="RSpecRunConfigurationType" factoryName="RSpec">
159
+ <configuration default="false" name="search_with_pages_spec" type="RSpecRunConfigurationType" factoryName="RSpec">
280
160
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
281
161
  <module name="acceptance_test" />
282
162
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -294,7 +174,7 @@
294
174
  </EXTENSION>
295
175
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
296
176
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
297
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/features/search_with_scenario_outline4.feature" />
177
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/features/search_with_pages.feature" />
298
178
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
299
179
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
300
180
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
@@ -312,7 +192,7 @@
312
192
  <ConfigurationWrapper RunnerId="RubyRunner" />
313
193
  <method />
314
194
  </configuration>
315
- <configuration default="false" name="search_with_table" type="RSpecRunConfigurationType" factoryName="RSpec">
195
+ <configuration default="false" name="search_with_scenario_outline" type="RSpecRunConfigurationType" factoryName="RSpec">
316
196
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
317
197
  <module name="acceptance_test" />
318
198
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
@@ -330,7 +210,7 @@
330
210
  </EXTENSION>
331
211
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
332
212
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
333
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/features/search_with_table.feature" />
213
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/features/search_with_scenario_outline4.feature" />
334
214
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
335
215
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
336
216
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
@@ -348,18 +228,16 @@
348
228
  <ConfigurationWrapper RunnerId="RubyRunner" />
349
229
  <method />
350
230
  </configuration>
351
- <configuration default="false" name="Run spec 'wikipedia_search_with_steps_spec': acceptance_test" type="RSpecRunConfigurationType" factoryName="RSpec">
231
+ <configuration default="false" name="search_with_table" type="RSpecRunConfigurationType" factoryName="RSpec">
352
232
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
353
233
  <module name="acceptance_test" />
354
234
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
355
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
235
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
356
236
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
357
237
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
358
238
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
359
- <envs>
360
- <env name="JRUBY_OPTS" value="-X+O" />
361
- </envs>
362
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
239
+ <envs />
240
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
363
241
  <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
364
242
  <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
365
243
  <COVERAGE_PATTERN ENABLED="true">
@@ -368,7 +246,7 @@
368
246
  </EXTENSION>
369
247
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
370
248
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
371
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/wikipedia_search_with_steps_spec.rb" />
249
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/features/search_with_table.feature" />
372
250
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
373
251
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
374
252
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
@@ -386,18 +264,15 @@
386
264
  <ConfigurationWrapper RunnerId="RubyRunner" />
387
265
  <method />
388
266
  </configuration>
389
- <configuration default="false" name="Run spec 'wikipedia_search_with_pages_spec': acceptance_test" type="RSpecRunConfigurationType" factoryName="RSpec">
390
- <predefined_log_file id="RUBY_RSPEC" enabled="true" />
267
+ <configuration default="false" name="rake" type="RakeRunConfigurationType" factoryName="Rake">
391
268
  <module name="acceptance_test" />
392
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
393
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
394
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
395
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
396
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
397
- <envs>
398
- <env name="JRUBY_OPTS" value="-X+O" />
399
- </envs>
400
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
269
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
270
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
271
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
272
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
273
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
274
+ <envs />
275
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
401
276
  <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
402
277
  <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
403
278
  <COVERAGE_PATTERN ENABLED="true">
@@ -405,77 +280,72 @@
405
280
  </COVERAGE_PATTERN>
406
281
  </EXTENSION>
407
282
  <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
408
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
409
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/wikipedia_search_with_pages_spec.rb" />
410
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
411
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
412
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
413
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
414
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
415
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
416
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
417
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
418
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
419
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
420
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
283
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_NAME" VALUE="diff_steps" />
284
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ARGS" VALUE="spec/features/search_with_pages.feature spec/acceptance/search_with_steps_spec.rb" />
285
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_ATTACHED_TEST_FRAMEWORKS" VALUE="" />
286
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_TRACE" VALUE="false" />
287
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_DRYRUN" VALUE="false" />
288
+ <RAKE_RUN_CONFIG_SETTINGS_ID NAME="RAKE_TASK_OPTION_PREREQS" VALUE="false" />
289
+ <RunnerSettings RunnerId="RubyDebugRunner" />
421
290
  <RunnerSettings RunnerId="RubyRunner" />
291
+ <ConfigurationWrapper RunnerId="RubyDebugRunner" />
422
292
  <ConfigurationWrapper RunnerId="RubyRunner" />
423
293
  <method />
424
294
  </configuration>
425
295
  </component>
426
296
  <component name="NewModuleRootManager">
427
297
  <content url="file://$MODULE_DIR$" />
428
- <orderEntry type="jdk" jdkName="RVM: ruby-1.9.3-p550 [acceptance_test]" jdkType="RUBY_SDK" />
298
+ <orderEntry type="jdk" jdkName="RVM: ruby-2.1.5 [acceptance_test]" jdkType="RUBY_SDK" />
429
299
  <orderEntry type="sourceFolder" forTests="false" />
430
- <orderEntry type="library" scope="PROVIDED" name="activesupport (v4.1.6, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
431
- <orderEntry type="library" scope="PROVIDED" name="builder (v3.2.2, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
432
- <orderEntry type="library" scope="PROVIDED" name="bundler (v1.7.4, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
433
- <orderEntry type="library" scope="PROVIDED" name="capybara (v2.4.3, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
434
- <orderEntry type="library" scope="PROVIDED" name="capybara-firebug (v2.1.0, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
435
- <orderEntry type="library" scope="PROVIDED" name="capybara-webkit (v1.3.0, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
436
- <orderEntry type="library" scope="PROVIDED" name="childprocess (v0.5.5, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
437
- <orderEntry type="library" scope="PROVIDED" name="chunky_png (v1.3.1, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
438
- <orderEntry type="library" scope="PROVIDED" name="cliver (v0.3.2, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
439
- <orderEntry type="library" scope="PROVIDED" name="cucumber (v1.3.17, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
440
- <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
441
- <orderEntry type="library" scope="PROVIDED" name="ffi (v1.9.6, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
442
- <orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
443
- <orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
444
- <orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.2, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
445
- <orderEntry type="library" scope="PROVIDED" name="gherkin (v2.12.2, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
446
- <orderEntry type="library" scope="PROVIDED" name="gnawrnip (v0.3.1, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
447
- <orderEntry type="library" scope="PROVIDED" name="i18n (v0.6.11, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
448
- <orderEntry type="library" scope="PROVIDED" name="json (v1.8.1, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
449
- <orderEntry type="library" scope="PROVIDED" name="meta_methods (v1.2.0, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
450
- <orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.4, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
451
- <orderEntry type="library" scope="PROVIDED" name="mime-types (v2.4.1, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
452
- <orderEntry type="library" scope="PROVIDED" name="mini_portile (v0.6.0, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
453
- <orderEntry type="library" scope="PROVIDED" name="minitest (v5.4.2, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
454
- <orderEntry type="library" scope="PROVIDED" name="mocha (v1.1.0, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
455
- <orderEntry type="library" scope="PROVIDED" name="multi_json (v1.10.1, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
456
- <orderEntry type="library" scope="PROVIDED" name="multi_test (v0.1.1, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
457
- <orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.6.3.1, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
458
- <orderEntry type="library" scope="PROVIDED" name="oily_png (v1.1.2, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
459
- <orderEntry type="library" scope="PROVIDED" name="poltergeist (v1.5.1, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
460
- <orderEntry type="library" scope="PROVIDED" name="rack (v1.5.2, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
461
- <orderEntry type="library" scope="PROVIDED" name="rack-test (v0.6.2, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
462
- <orderEntry type="library" scope="PROVIDED" name="rspec (v3.1.0, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
463
- <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.1.6, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
464
- <orderEntry type="library" scope="PROVIDED" name="rspec-example_steps (v3.0.2, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
465
- <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.1.2, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
466
- <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.1.3, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
467
- <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.1.2, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
468
- <orderEntry type="library" scope="PROVIDED" name="rubyzip (v1.1.6, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
469
- <orderEntry type="library" scope="PROVIDED" name="selenium-webdriver (v2.43.0, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
470
- <orderEntry type="library" scope="PROVIDED" name="slim (v2.0.3, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
471
- <orderEntry type="library" scope="PROVIDED" name="temple (v0.6.8, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
472
- <orderEntry type="library" scope="PROVIDED" name="thread_safe (v0.3.4, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
473
- <orderEntry type="library" scope="PROVIDED" name="tilt (v2.0.1, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
474
- <orderEntry type="library" scope="PROVIDED" name="turnip (v1.2.4, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
475
- <orderEntry type="library" scope="PROVIDED" name="turnip_formatter (v0.3.2, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
476
- <orderEntry type="library" scope="PROVIDED" name="tzinfo (v1.2.2, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
477
- <orderEntry type="library" scope="PROVIDED" name="websocket (v1.2.1, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
478
- <orderEntry type="library" scope="PROVIDED" name="websocket-driver (v0.3.5, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
479
- <orderEntry type="library" scope="PROVIDED" name="xpath (v2.0.0, RVM: ruby-1.9.3-p550 [acceptance_test]) [gem]" level="application" />
300
+ <orderEntry type="library" scope="PROVIDED" name="activesupport (v4.1.6, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
301
+ <orderEntry type="library" scope="PROVIDED" name="builder (v3.2.2, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
302
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.7.6, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
303
+ <orderEntry type="library" scope="PROVIDED" name="capybara (v2.4.3, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
304
+ <orderEntry type="library" scope="PROVIDED" name="capybara-firebug (v2.1.0, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
305
+ <orderEntry type="library" scope="PROVIDED" name="capybara-webkit (v1.3.0, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
306
+ <orderEntry type="library" scope="PROVIDED" name="childprocess (v0.5.5, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
307
+ <orderEntry type="library" scope="PROVIDED" name="chunky_png (v1.3.1, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
308
+ <orderEntry type="library" scope="PROVIDED" name="cliver (v0.3.2, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
309
+ <orderEntry type="library" scope="PROVIDED" name="cucumber (v1.3.17, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
310
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
311
+ <orderEntry type="library" scope="PROVIDED" name="ffi (v1.9.6, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
312
+ <orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
313
+ <orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
314
+ <orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.2, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
315
+ <orderEntry type="library" scope="PROVIDED" name="gherkin (v2.12.2, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
316
+ <orderEntry type="library" scope="PROVIDED" name="gnawrnip (v0.3.1, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
317
+ <orderEntry type="library" scope="PROVIDED" name="i18n (v0.6.11, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
318
+ <orderEntry type="library" scope="PROVIDED" name="json (v1.8.1, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
319
+ <orderEntry type="library" scope="PROVIDED" name="meta_methods (v1.2.0, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
320
+ <orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.4, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
321
+ <orderEntry type="library" scope="PROVIDED" name="mime-types (v2.4.1, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
322
+ <orderEntry type="library" scope="PROVIDED" name="mini_portile (v0.6.0, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
323
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.4.2, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
324
+ <orderEntry type="library" scope="PROVIDED" name="mocha (v1.1.0, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
325
+ <orderEntry type="library" scope="PROVIDED" name="multi_json (v1.10.1, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
326
+ <orderEntry type="library" scope="PROVIDED" name="multi_test (v0.1.1, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
327
+ <orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.6.3.1, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
328
+ <orderEntry type="library" scope="PROVIDED" name="oily_png (v1.1.2, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
329
+ <orderEntry type="library" scope="PROVIDED" name="poltergeist (v1.5.1, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
330
+ <orderEntry type="library" scope="PROVIDED" name="rack (v1.5.2, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
331
+ <orderEntry type="library" scope="PROVIDED" name="rack-test (v0.6.2, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
332
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.1.0, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
333
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.1.6, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
334
+ <orderEntry type="library" scope="PROVIDED" name="rspec-example_steps (v3.0.2, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
335
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.1.2, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
336
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.1.3, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
337
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.1.2, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
338
+ <orderEntry type="library" scope="PROVIDED" name="rubyzip (v1.1.6, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
339
+ <orderEntry type="library" scope="PROVIDED" name="selenium-webdriver (v2.43.0, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
340
+ <orderEntry type="library" scope="PROVIDED" name="slim (v2.0.3, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
341
+ <orderEntry type="library" scope="PROVIDED" name="temple (v0.6.8, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
342
+ <orderEntry type="library" scope="PROVIDED" name="thread_safe (v0.3.4, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
343
+ <orderEntry type="library" scope="PROVIDED" name="tilt (v2.0.1, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
344
+ <orderEntry type="library" scope="PROVIDED" name="turnip (v1.2.4, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
345
+ <orderEntry type="library" scope="PROVIDED" name="turnip_formatter (v0.3.2, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
346
+ <orderEntry type="library" scope="PROVIDED" name="tzinfo (v1.2.2, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
347
+ <orderEntry type="library" scope="PROVIDED" name="websocket (v1.2.1, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
348
+ <orderEntry type="library" scope="PROVIDED" name="websocket-driver (v0.3.5, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
349
+ <orderEntry type="library" scope="PROVIDED" name="xpath (v2.0.0, RVM: ruby-2.1.5 [acceptance_test]) [gem]" level="application" />
480
350
  </component>
481
351
  </module>
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 1.9.3
1
+ 2.1.5
data/CHANGES CHANGED
@@ -223,4 +223,8 @@
223
223
 
224
224
  == Version 1.8.4
225
225
 
226
- * Letting scenario outline read from hash
226
+ * Letting scenario outline read from hash
227
+
228
+ == Version 1.8.5
229
+
230
+ * Refactoring classes; adding tools.
data/Rakefile CHANGED
@@ -10,6 +10,8 @@ $LOAD_PATH.unshift File.expand_path("lib", File.dirname(__FILE__))
10
10
 
11
11
  require "acceptance_test/version"
12
12
  require "gemspec_deps_gen/gemspec_deps_gen"
13
+ require "acceptance_test/gen_tool"
14
+ require "acceptance_test/diff_tool"
13
15
 
14
16
  version = AcceptanceTest::VERSION
15
17
  project_name = File.basename(Dir.pwd)
@@ -46,82 +48,45 @@ end
46
48
  # system "cp -R ~/debugger-ruby_core_source/lib $GEM_HOME/gems/debugger-ruby_core_source-1.2.3"
47
49
  # end
48
50
 
49
- task :steps_gen do
51
+ task :gen_steps do
50
52
  if ARGV.size < 2
51
- puts "Usage: rake steps_gen <file_name.feature>"
53
+ puts "Usage: rake gen_steps <file_name.feature>"
52
54
  else
53
55
  ARGV.shift
54
56
 
55
57
  file_name = ARGV.shift
56
58
 
57
- StepsGenerator.instance.generate file_name
59
+ GenTool.instance.generate_steps file_name
58
60
  end
59
61
  end
60
62
 
61
- task :steps_diff do
62
- if ARGV.size < 3
63
- puts "Usage: rake steps_diff <file_name.feature> <file_name_spec.rb>"
63
+ task :gen_feature do
64
+ if ARGV.size < 2
65
+ puts "Usage: rake gen_feature <file_name_with_steps_spec.rb>"
64
66
  else
65
67
  ARGV.shift
66
68
 
67
- file_name1 = ARGV.shift
68
- file_name2 = ARGV.shift
69
-
70
- # StepsGenerator.instance.generate file_name
71
-
72
- phrases1 = []
73
-
74
- keywords_exp1 = /^(Given|When|Then|And|But)/
75
-
76
- File.open(file_name1).each_line do |line|
77
- line = line.strip
78
-
79
- if line !~ /^#/ and line =~ keywords_exp1
80
- word = line.scan(keywords_exp1)[0][0]
81
-
82
- phrases1 << line[word.size..-1].strip
83
- end
84
- end
85
-
86
- phrases2 = []
87
-
88
- keywords_exp2 = /step\s+('|")(.*)('|")/
89
-
90
- File.open(file_name2).each_line do |line|
91
- line = line.strip
92
-
93
- if line !~ /^#/ and line =~ keywords_exp2
94
- phrases2 << line.scan(keywords_exp2)[0][1]
95
- end
96
- end
69
+ file_name = ARGV.shift
97
70
 
98
- phrases1.each_with_index do |phrase, index|
99
- phrase1 = phrase.clone.gsub("\"", "'")
100
- phrase2 = phrases2[index]
71
+ GenTool.instance.generate_feature file_name
72
+ end
73
+ end
101
74
 
102
- params = phrase2.gsub(/:\w+\S/).to_a
75
+ task :diff_steps do
76
+ if ARGV.size < 3
77
+ puts "Usage: rake diff_steps <file_name.feature> <file_name_with_steps_spec.rb>"
78
+ else
79
+ ARGV.shift
103
80
 
104
- params.each do |param|
105
- new_param = param.gsub(":", "")
81
+ source = ARGV.shift
82
+ target = ARGV.shift
106
83
 
107
- phrase1.gsub!(%r{<#{new_param}>}, param)
108
- end
84
+ # source = "spec/features/search_with_pages.feature"
85
+ # target = "spec/acceptance/search_with_steps_spec.rb"
109
86
 
110
- # p phrase1
111
- params.each do |param|
112
- phrase1.gsub!(/(\w|\s)*/, param)
113
- end
114
- # p phrase1
87
+ # source = ARGV.shift
88
+ # target = source.gsub("features", "acceptance").gsub(".feature", "_spec.rb")
115
89
 
116
- if phrase1 != phrase2
117
- puts "Fail:"
118
- puts " {#{phrase}}"
119
- puts " {#{phrases2[index]}}"
120
- else
121
- # puts "OK:"
122
- # puts " {#{phrase}}"
123
- # puts " {#{phrases2[index]}}"
124
- end
125
- end
90
+ DiffTool.instance.diff source, target
126
91
  end
127
92
  end
@@ -0,0 +1,81 @@
1
+ require 'singleton'
2
+
3
+ class DiffTool
4
+ include Singleton
5
+
6
+ def diff source, target
7
+ phrases1 = []
8
+
9
+ keywords_exp1 = /^(Given|When|Then|And|But)/
10
+
11
+ File.open(source).each_line do |line|
12
+ line = line.strip
13
+
14
+ if line !~ /^#/ and line =~ keywords_exp1
15
+ word = line.scan(keywords_exp1)[0][0]
16
+
17
+ phrases1 << line[word.size..-1].strip
18
+ end
19
+ end
20
+
21
+ phrases2 = []
22
+
23
+ keywords_exp2 = /step\s+('|")(.*)('|")/
24
+
25
+ File.open(target).each_line do |line|
26
+ line = line.strip
27
+
28
+ if line !~ /^#/ and line =~ keywords_exp2
29
+ phrases2 << line.scan(keywords_exp2)[0][1]
30
+ end
31
+ end
32
+
33
+ ok = true
34
+
35
+ phrases1.each_with_index do |phrase, index|
36
+ phrase1 = phrase.clone.gsub("\"", "'")
37
+ phrase2 = phrases2[index]
38
+
39
+ if phrase1.nil? or phrase2.nil?
40
+ puts "Different amount of steps:"
41
+ puts " source: #{phrases1.size}"
42
+ puts " target: #{phrases2.size}"
43
+ ok = false
44
+ break
45
+ end
46
+
47
+ params = phrase2.gsub(/:\w+\S/).to_a
48
+
49
+ params.each do |param|
50
+ new_param = param.gsub(":", "")
51
+
52
+ phrase1.gsub!(%r{<#{new_param}>}, param)
53
+ end
54
+
55
+ params.each do |param|
56
+ phrase1.gsub!(/'(\w|\s)*'/, param)
57
+ end
58
+
59
+ params.each do |param|
60
+ phrase1.gsub!(/'(.)*'/, param)
61
+ end
62
+
63
+ if phrase1 != phrase2
64
+ puts "Fail:"
65
+ puts " #{phrase}"
66
+ puts " #{phrases2[index]}"
67
+ ok = false
68
+ else
69
+ puts "OK:"
70
+ puts " #{phrase}"
71
+ puts " #{phrases2[index]}"
72
+ end
73
+ end
74
+
75
+ if ok
76
+ puts "Everything is OK."
77
+ else
78
+ puts "Some errors exist!"
79
+ end
80
+ end
81
+ end
@@ -1,12 +1,12 @@
1
1
  require 'singleton'
2
2
 
3
- class StepsGenerator
3
+ class GenTool
4
4
  include Singleton
5
5
 
6
- def generate file_name
6
+ def generate_steps feature_file_name
7
7
  keywords_exp = /^(Given|When|Then|And|But)/
8
8
 
9
- File.open(file_name).each_line do |line|
9
+ File.open(feature_file_name).each_line do |line|
10
10
  line = line.strip
11
11
 
12
12
  if line !~ /^#/ and line =~ keywords_exp
@@ -53,4 +53,20 @@ class StepsGenerator
53
53
  end
54
54
  end
55
55
  end
56
+
57
+ def generate_feature spec_file_name
58
+ keywords_exp = /step\s+('|")(.*)('|")/
59
+
60
+ File.open(spec_file_name).each_line do |line|
61
+ line = line.strip
62
+
63
+ if line =~ keywords_exp
64
+ if line =~ /^#/
65
+ puts "# " + line.scan(keywords_exp)[0][1]
66
+ else
67
+ puts line.scan(keywords_exp)[0][1]
68
+ end
69
+ end
70
+ end
71
+ end
56
72
  end
@@ -43,9 +43,11 @@ class GherkinExt
43
43
 
44
44
  data = key.nil? ? values : values[key]
45
45
 
46
- if data.size > 0
46
+ if data && data.size > 0
47
47
  new_source += build_data_section data
48
48
  else
49
+ puts "Cannot find source for #{key}."
50
+
49
51
  new_source += line
50
52
  end
51
53
  end
@@ -7,12 +7,11 @@ class PageSet
7
7
  extend Forwardable
8
8
 
9
9
  attr_accessor :context
10
- attr_reader :pages, :input
10
+ attr_reader :pages
11
11
 
12
12
  def initialize context
13
13
  @context = context
14
14
  @pages = []
15
- @input = {}
16
15
  end
17
16
 
18
17
  def session
@@ -23,23 +22,6 @@ class PageSet
23
22
  MetaMethods::DslBuilder.instance.evaluate_dsl(self, nil, code)
24
23
  end
25
24
 
26
- def self.step title
27
- yield if block_given?
28
- end
29
-
30
- def step title
31
- values = []
32
-
33
- params = title.gsub(/:\w+/)
34
-
35
- params.each do |param|
36
- key = param.gsub(":", "").to_sym
37
- values << input[key] if input[key]
38
- end
39
-
40
- yield *values if block_given?
41
- end
42
-
43
25
  def delegate_to_pages *pages
44
26
  pages.each do |page|
45
27
  delegate_to_page page
@@ -0,0 +1,22 @@
1
+ module StepMaker
2
+
3
+ attr_reader :input
4
+
5
+ def initialize
6
+ @input = {}
7
+ end
8
+
9
+ def step title
10
+ values = []
11
+
12
+ params = title.gsub(/:\w+/)
13
+
14
+ params.each do |param|
15
+ key = param.gsub(":", "").to_sym
16
+ values << input[key] if input[key]
17
+ end
18
+
19
+ yield *values if block_given?
20
+ end
21
+
22
+ end
@@ -1,3 +1,3 @@
1
1
  class AcceptanceTest
2
- VERSION = "1.8.4"
2
+ VERSION = "1.8.5"
3
3
  end
@@ -23,10 +23,6 @@ RSpec.describe 'Wikipedia Search' do
23
23
  puts "Capybara current driver: #{Capybara.current_driver}"
24
24
  end
25
25
 
26
- after do
27
- AcceptanceTest.instance.teardown
28
- end
29
-
30
26
  it "uses selenium driver" do
31
27
  visit('/')
32
28
 
@@ -10,19 +10,19 @@ AcceptanceTest.instance.driver_manager.register_driver(:poltergeist)
10
10
  RSpec.describe 'Wikipedia Search' do
11
11
  include Capybara::DSL
12
12
 
13
- before do
14
- AcceptanceTest.instance.setup
15
- AcceptanceTest.instance.driver_manager.use_driver(:selenium_chrome)
13
+ before do |example|
14
+ AcceptanceTest.instance.setup page, example.metadata
15
+ #AcceptanceTest.instance.driver_manager.use_driver(:selenium_chrome)
16
16
 
17
17
  puts "Using driver: #{Capybara.current_driver}."
18
18
  puts "Default wait time: #{Capybara.default_wait_time}."
19
19
  end
20
20
 
21
- after do
22
- AcceptanceTest.instance.teardown
21
+ after do |example|
22
+ AcceptanceTest.instance.teardown page, example.metadata
23
23
  end
24
24
 
25
- it "uses selenium driver" do
25
+ it "uses default webkit driver" do
26
26
  visit('/')
27
27
 
28
28
  fill_in "searchInput", :with => "Capybara"
@@ -32,7 +32,7 @@ RSpec.describe 'Wikipedia Search' do
32
32
  expect(page).to have_content "Hydrochoerus hydrochaeris"
33
33
  end
34
34
 
35
- it "uses webkit driver", driver: :webkit do
35
+ it "uses selenium driver", driver: :selenium do
36
36
  visit('/')
37
37
 
38
38
  fill_in "searchInput", :with => "Capybara"
@@ -28,15 +28,15 @@ RSpec.describe 'Wikipedia Search' do
28
28
 
29
29
  let(:page_set) { WikipediaPages.new(self) }
30
30
 
31
- before do
32
- AcceptanceTest.instance.setup
31
+ before do |example|
32
+ AcceptanceTest.instance.setup page, example.metadata
33
33
 
34
34
  puts "Using driver: #{Capybara.current_driver}."
35
35
  puts "Default wait time: #{Capybara.default_wait_time}."
36
36
  end
37
37
 
38
- after do
39
- AcceptanceTest.instance.teardown
38
+ after do |example|
39
+ AcceptanceTest.instance.teardown page, example.metadata
40
40
  end
41
41
 
42
42
  it "searches on wikipedia web site" do
@@ -0,0 +1,57 @@
1
+ require 'acceptance_test'
2
+ require 'acceptance_test/step_maker'
3
+
4
+ AcceptanceTest.instance.configure({webapp_url: 'http://www.wikipedia.org', timeout_in_seconds: 10})
5
+
6
+ RSpec.describe 'Wikipedia Search' do
7
+ include Capybara::DSL
8
+ include StepMaker
9
+
10
+ before do |example|
11
+ AcceptanceTest.instance.setup page, example.metadata
12
+
13
+ puts "Using driver: #{Capybara.current_driver}."
14
+ puts "Default wait time: #{Capybara.default_wait_time}."
15
+ end
16
+
17
+ after do |example|
18
+ AcceptanceTest.instance.teardown page, example.metadata
19
+ end
20
+
21
+ it "executes default script" do
22
+ visit('/')
23
+
24
+ fill_in "searchInput", :with => "Capybara"
25
+
26
+ find(".formBtn", match: :first).click
27
+
28
+ expect(page).to have_content "Hydrochoerus hydrochaeris"
29
+ end
30
+
31
+ it "executes script with steps" do
32
+ input[:name] = "wikipedia.com"
33
+
34
+ step "I am within wikipedia.com"
35
+
36
+ step "I am on wikipedia.com" do
37
+ visit('/')
38
+ end
39
+
40
+ input[:word] = "Capybara"
41
+
42
+ step "I enter word :word" do |word|
43
+ fill_in "searchInput", :with => word
44
+ end
45
+
46
+ step "I submit request" do
47
+ find(".formBtn", match: :first).click
48
+ end
49
+
50
+ input[:text] ="Hydrochoerus hydrochaeris"
51
+
52
+ step "I should see :text" do |text|
53
+ expect(page).to have_content text
54
+ end
55
+ end
56
+
57
+ end
metadata CHANGED
@@ -1,62 +1,61 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acceptance_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.4
4
+ version: 1.8.5
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-11-05 00:00:00.000000000 Z
11
+ date: 2014-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gemspec_deps_gen
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gemcutter
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: ! 'Description: simplifies congiguration and run of acceptance tests.'
41
+ description: 'Description: simplifies congiguration and run of acceptance tests.'
42
42
  email: alexander.shvets@gmail.com
43
43
  executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
- - .gitignore
48
- - .idea/.rakeTasks
49
- - .idea/acceptance_test.iml
50
- - .idea/encodings.xml
51
- - .idea/jenkinsSettings.xml
52
- - .idea/misc.xml
53
- - .idea/modules.xml
54
- - .idea/runConfigurations/wikipedia_search__acceptance_test.xml
55
- - .idea/scopes/scope_settings.xml
56
- - .idea/vcs.xml
57
- - .rspec
58
- - .ruby-gemset
59
- - .ruby-version
47
+ - ".gitignore"
48
+ - ".idea/.rakeTasks"
49
+ - ".idea/acceptance_test.iml"
50
+ - ".idea/encodings.xml"
51
+ - ".idea/jenkinsSettings.xml"
52
+ - ".idea/misc.xml"
53
+ - ".idea/modules.xml"
54
+ - ".idea/scopes/scope_settings.xml"
55
+ - ".idea/vcs.xml"
56
+ - ".rspec"
57
+ - ".ruby-gemset"
58
+ - ".ruby-version"
60
59
  - CHANGES
61
60
  - Gemfile
62
61
  - Gemfile.lock
@@ -72,16 +71,23 @@ files:
72
71
  - lib/acceptance_test.rb
73
72
  - lib/acceptance_test/acceptance_test.rb
74
73
  - lib/acceptance_test/cucumber_ext.rb
74
+ - lib/acceptance_test/diff_tool.rb
75
75
  - lib/acceptance_test/driver_manager.rb
76
+ - lib/acceptance_test/gen_tool.rb
76
77
  - lib/acceptance_test/gherkin_ext.rb
77
78
  - lib/acceptance_test/page.rb
78
79
  - lib/acceptance_test/page_set.rb
79
80
  - lib/acceptance_test/screenshot_maker.rb
80
81
  - lib/acceptance_test/shared_context_builder.rb
81
- - lib/acceptance_test/steps_generator.rb
82
+ - lib/acceptance_test/step_maker.rb
82
83
  - lib/acceptance_test/turnip_ext.rb
83
84
  - lib/acceptance_test/version.rb
84
85
  - lib/tasks/rspec.rake
86
+ - spec/acceptance/search_with_config_spec.rb
87
+ - spec/acceptance/search_with_drivers_spec.rb
88
+ - spec/acceptance/search_with_example_steps_spec.rb
89
+ - spec/acceptance/search_with_pages_spec.rb
90
+ - spec/acceptance/search_with_steps_spec.rb
85
91
  - spec/acceptance_config.yml
86
92
  - spec/data.csv
87
93
  - spec/data.yml
@@ -101,10 +107,6 @@ files:
101
107
  - spec/support/steps/search_with_table_steps.rb
102
108
  - spec/test_helper.rb
103
109
  - spec/turnip_helper.rb
104
- - spec/wikipedia_search_spec.rb
105
- - spec/wikipedia_search_with_config_spec.rb
106
- - spec/wikipedia_search_with_pages_spec.rb
107
- - spec/wikipedia_search_with_steps_spec.rb
108
110
  homepage: http://github.com/shvets/acceptance_test
109
111
  licenses:
110
112
  - MIT
@@ -115,17 +117,17 @@ require_paths:
115
117
  - lib
116
118
  required_ruby_version: !ruby/object:Gem::Requirement
117
119
  requirements:
118
- - - ! '>='
120
+ - - ">="
119
121
  - !ruby/object:Gem::Version
120
122
  version: '0'
121
123
  required_rubygems_version: !ruby/object:Gem::Requirement
122
124
  requirements:
123
- - - ! '>='
125
+ - - ">="
124
126
  - !ruby/object:Gem::Version
125
127
  version: '0'
126
128
  requirements: []
127
129
  rubyforge_project:
128
- rubygems_version: 2.4.2
130
+ rubygems_version: 2.4.3
129
131
  signing_key:
130
132
  specification_version: 4
131
133
  summary: Simplifies congiguration and run of acceptance tests.
@@ -134,6 +136,11 @@ test_files:
134
136
  - features/wikipedia/support/env.rb
135
137
  - features/wikipedia/wikipedia_search.feature
136
138
  - features/wikipedia/wikipedia_search_from_csv.feature
139
+ - spec/acceptance/search_with_config_spec.rb
140
+ - spec/acceptance/search_with_drivers_spec.rb
141
+ - spec/acceptance/search_with_example_steps_spec.rb
142
+ - spec/acceptance/search_with_pages_spec.rb
143
+ - spec/acceptance/search_with_steps_spec.rb
137
144
  - spec/acceptance_config.yml
138
145
  - spec/data.csv
139
146
  - spec/data.yml
@@ -153,7 +160,3 @@ test_files:
153
160
  - spec/support/steps/search_with_table_steps.rb
154
161
  - spec/test_helper.rb
155
162
  - spec/turnip_helper.rb
156
- - spec/wikipedia_search_spec.rb
157
- - spec/wikipedia_search_with_config_spec.rb
158
- - spec/wikipedia_search_with_pages_spec.rb
159
- - spec/wikipedia_search_with_steps_spec.rb
@@ -1,43 +0,0 @@
1
- <component name="ProjectRunConfigurationManager">
2
- <configuration default="false" name="wikipedia_search: acceptance_test" type="CucumberRunConfigurationType" factoryName="Cucumber">
3
- <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
4
- <module name="acceptance_test" />
5
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
6
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$/spec" />
7
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
8
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
9
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
10
- <envs>
11
- <env name="JRUBY_OPTS" value="-X+O" />
12
- </envs>
13
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
14
- <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
15
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
16
- <COVERAGE_PATTERN ENABLED="true">
17
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
18
- </COVERAGE_PATTERN>
19
- </EXTENSION>
20
- <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
21
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
22
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
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.fea" />
25
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
26
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
27
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
28
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
29
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
30
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
31
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
32
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
33
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
34
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
35
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
36
- <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
37
- <RunnerSettings RunnerId="RubyDebugRunner" />
38
- <RunnerSettings RunnerId="RubyRunner" />
39
- <ConfigurationWrapper RunnerId="RubyDebugRunner" />
40
- <ConfigurationWrapper RunnerId="RubyRunner" />
41
- <method />
42
- </configuration>
43
- </component>