rspec-core 2.6.0 → 2.7.0.rc1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -1
- data/features/Upgrade.md +11 -0
- data/features/command_line/exit_status.feature +20 -3
- data/features/command_line/format_option.feature +8 -0
- data/features/command_line/line_number_appended_to_path.feature +35 -1
- data/features/command_line/line_number_option.feature +16 -3
- data/features/command_line/pattern_option.feature +31 -0
- data/features/command_line/rake_task.feature +1 -1
- data/features/command_line/ruby.feature +22 -0
- data/features/configuration/default_path.feature +38 -0
- data/features/example_groups/{shared_example_group.feature → shared_examples.feature} +49 -26
- data/features/expectation_framework_integration/configure_expectation_framework.feature +1 -1
- data/features/filtering/inclusion_filters.feature +4 -5
- data/features/formatters/text_formatter.feature +16 -13
- data/features/helper_methods/let.feature +4 -4
- data/features/hooks/around_hooks.feature +1 -1
- data/features/hooks/before_and_after_hooks.feature +3 -3
- data/features/hooks/filtering.feature +13 -6
- data/features/metadata/user_defined.feature +12 -10
- data/features/pending/pending_examples.feature +21 -8
- data/features/step_definitions/additional_cli_steps.rb +1 -1
- data/features/subject/attribute_of_subject.feature +2 -2
- data/features/support/env.rb +1 -2
- data/lib/rspec/core/backward_compatibility.rb +1 -1
- data/lib/rspec/core/configuration.rb +71 -16
- data/lib/rspec/core/configuration_options.rb +46 -16
- data/lib/rspec/core/{extensions/object.rb → dsl.rb} +2 -4
- data/lib/rspec/core/example.rb +10 -7
- data/lib/rspec/core/example_group.rb +34 -18
- data/lib/rspec/core/expecting/with_rspec.rb +0 -2
- data/lib/rspec/core/extensions.rb +0 -1
- data/lib/rspec/core/formatters/base_formatter.rb +8 -4
- data/lib/rspec/core/formatters/base_text_formatter.rb +38 -18
- data/lib/rspec/core/formatters/html_formatter.rb +3 -1
- data/lib/rspec/core/formatters/snippet_extractor.rb +9 -3
- data/lib/rspec/core/formatters/text_mate_formatter.rb +20 -6
- data/lib/rspec/core/hooks.rb +7 -6
- data/lib/rspec/core/let.rb +5 -5
- data/lib/rspec/core/metadata.rb +136 -94
- data/lib/rspec/core/metadata_hash_builder.rb +1 -1
- data/lib/rspec/core/option_parser.rb +11 -7
- data/lib/rspec/core/pending.rb +2 -1
- data/lib/rspec/core/rake_task.rb +26 -15
- data/lib/rspec/core/reporter.rb +5 -6
- data/lib/rspec/core/runner.rb +1 -1
- data/lib/rspec/core/shared_example_group.rb +4 -4
- data/lib/rspec/core/subject.rb +7 -7
- data/lib/rspec/core/version.rb +1 -1
- data/lib/rspec/core/world.rb +9 -13
- data/lib/rspec/core.rb +14 -21
- data/spec/autotest/discover_spec.rb +2 -2
- data/spec/autotest/failed_results_re_spec.rb +29 -21
- data/spec/autotest/rspec_spec.rb +3 -3
- data/spec/rspec/core/command_line_spec.rb +1 -6
- data/spec/rspec/core/configuration_options_spec.rb +111 -27
- data/spec/rspec/core/configuration_spec.rb +161 -37
- data/spec/rspec/core/deprecations_spec.rb +2 -2
- data/spec/rspec/core/drb_command_line_spec.rb +6 -6
- data/spec/rspec/core/example_group_spec.rb +197 -61
- data/spec/rspec/core/example_spec.rb +33 -16
- data/spec/rspec/core/formatters/base_formatter_spec.rb +3 -3
- data/spec/rspec/core/formatters/base_text_formatter_spec.rb +222 -71
- data/spec/rspec/core/formatters/helpers_spec.rb +8 -8
- data/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +90 -26
- data/spec/rspec/core/formatters/html_formatted-1.8.7.html +12 -11
- data/spec/rspec/core/formatters/html_formatted-1.9.2.html +12 -11
- data/spec/rspec/core/formatters/{html_formatted-1.9.1.html → html_formatted-1.9.3.html} +12 -11
- data/spec/rspec/core/formatters/html_formatter_spec.rb +5 -5
- data/spec/rspec/core/formatters/progress_formatter_spec.rb +2 -2
- data/spec/rspec/core/formatters/snippet_extractor_spec.rb +2 -2
- data/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +91 -27
- data/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +13 -12
- data/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +29 -28
- data/spec/rspec/core/formatters/{text_mate_formatted-1.9.1.html → text_mate_formatted-1.9.3.html} +29 -28
- data/spec/rspec/core/formatters/text_mate_formatter_spec.rb +2 -2
- data/spec/rspec/core/hooks_filtering_spec.rb +18 -18
- data/spec/rspec/core/let_spec.rb +19 -6
- data/spec/rspec/core/metadata_spec.rb +146 -61
- data/spec/rspec/core/pending_example_spec.rb +4 -4
- data/spec/rspec/core/rake_task_spec.rb +71 -50
- data/spec/rspec/core/reporter_spec.rb +2 -2
- data/spec/rspec/core/ruby_project_spec.rb +2 -2
- data/spec/rspec/core/runner_spec.rb +4 -1
- data/spec/rspec/core/shared_example_group_spec.rb +15 -119
- data/spec/rspec/core/subject_spec.rb +13 -13
- data/spec/rspec/core/world_spec.rb +31 -22
- data/spec/rspec/core_spec.rb +1 -29
- data/spec/spec_helper.rb +51 -50
- data/spec/support/shared_example_groups.rb +3 -3
- data/spec/support/spec_files.rb +8 -8
- metadata +79 -94
- data/.document +0 -5
- data/.gitignore +0 -12
- data/.rspec +0 -0
- data/.travis.yml +0 -7
- data/Gemfile +0 -50
- data/Guardfile +0 -5
- data/License.txt +0 -23
- data/Rakefile +0 -89
- data/cucumber.yml +0 -2
- data/features/.nav +0 -57
- data/features/Changelog.md +0 -269
- data/rspec-core.gemspec +0 -24
- data/script/FullBuildRakeFile +0 -63
- data/script/console +0 -8
- data/script/cucumber +0 -1
- data/script/full_build +0 -1
- data/script/spec +0 -1
- data/spec/rspec/core/formatters/html_formatted-1.8.6.html +0 -398
- data/spec/rspec/core/formatters/text_mate_formatted-1.8.6.html +0 -398
- data/spec.txt +0 -1126
- /data/{bin → exe}/autospec +0 -0
- /data/{bin → exe}/rspec +0 -0
metadata
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rspec-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
5
|
-
prerelease:
|
|
4
|
+
hash: 15424039
|
|
5
|
+
prerelease: 6
|
|
6
6
|
segments:
|
|
7
7
|
- 2
|
|
8
|
-
-
|
|
8
|
+
- 7
|
|
9
9
|
- 0
|
|
10
|
-
|
|
10
|
+
- rc
|
|
11
|
+
- 1
|
|
12
|
+
version: 2.7.0.rc1
|
|
11
13
|
platform: ruby
|
|
12
14
|
authors:
|
|
13
15
|
- Chad Humphries
|
|
14
16
|
- David Chelimsky
|
|
15
17
|
autorequire:
|
|
16
|
-
bindir:
|
|
18
|
+
bindir: exe
|
|
17
19
|
cert_chain: []
|
|
18
20
|
|
|
19
|
-
date: 2011-
|
|
20
|
-
default_executable:
|
|
21
|
+
date: 2011-10-09 00:00:00 Z
|
|
21
22
|
dependencies: []
|
|
22
23
|
|
|
23
24
|
description: BDD for Ruby. RSpec runner and example groups.
|
|
@@ -30,68 +31,6 @@ extensions: []
|
|
|
30
31
|
extra_rdoc_files:
|
|
31
32
|
- README.md
|
|
32
33
|
files:
|
|
33
|
-
- .document
|
|
34
|
-
- .gitignore
|
|
35
|
-
- .rspec
|
|
36
|
-
- .travis.yml
|
|
37
|
-
- Gemfile
|
|
38
|
-
- Guardfile
|
|
39
|
-
- License.txt
|
|
40
|
-
- README.md
|
|
41
|
-
- Rakefile
|
|
42
|
-
- bin/autospec
|
|
43
|
-
- bin/rspec
|
|
44
|
-
- cucumber.yml
|
|
45
|
-
- features/.nav
|
|
46
|
-
- features/Autotest.md
|
|
47
|
-
- features/Changelog.md
|
|
48
|
-
- features/README.md
|
|
49
|
-
- features/Upgrade.md
|
|
50
|
-
- features/command_line/README.md
|
|
51
|
-
- features/command_line/configure.feature
|
|
52
|
-
- features/command_line/example_name_option.feature
|
|
53
|
-
- features/command_line/exit_status.feature
|
|
54
|
-
- features/command_line/format_option.feature
|
|
55
|
-
- features/command_line/line_number_appended_to_path.feature
|
|
56
|
-
- features/command_line/line_number_option.feature
|
|
57
|
-
- features/command_line/rake_task.feature
|
|
58
|
-
- features/command_line/tag.feature
|
|
59
|
-
- features/configuration/alias_example_to.feature
|
|
60
|
-
- features/configuration/custom_settings.feature
|
|
61
|
-
- features/configuration/fail_fast.feature
|
|
62
|
-
- features/configuration/read_options_from_file.feature
|
|
63
|
-
- features/example_groups/basic_structure.feature
|
|
64
|
-
- features/example_groups/shared_context.feature
|
|
65
|
-
- features/example_groups/shared_example_group.feature
|
|
66
|
-
- features/expectation_framework_integration/configure_expectation_framework.feature
|
|
67
|
-
- features/filtering/exclusion_filters.feature
|
|
68
|
-
- features/filtering/if_and_unless.feature
|
|
69
|
-
- features/filtering/inclusion_filters.feature
|
|
70
|
-
- features/filtering/run_all_when_everything_filtered.feature
|
|
71
|
-
- features/formatters/custom_formatter.feature
|
|
72
|
-
- features/formatters/text_formatter.feature
|
|
73
|
-
- features/helper_methods/arbitrary_methods.feature
|
|
74
|
-
- features/helper_methods/let.feature
|
|
75
|
-
- features/helper_methods/modules.feature
|
|
76
|
-
- features/hooks/around_hooks.feature
|
|
77
|
-
- features/hooks/before_and_after_hooks.feature
|
|
78
|
-
- features/hooks/filtering.feature
|
|
79
|
-
- features/metadata/current_example.feature
|
|
80
|
-
- features/metadata/described_class.feature
|
|
81
|
-
- features/metadata/user_defined.feature
|
|
82
|
-
- features/mock_framework_integration/use_any_framework.feature
|
|
83
|
-
- features/mock_framework_integration/use_flexmock.feature
|
|
84
|
-
- features/mock_framework_integration/use_mocha.feature
|
|
85
|
-
- features/mock_framework_integration/use_rr.feature
|
|
86
|
-
- features/mock_framework_integration/use_rspec.feature
|
|
87
|
-
- features/pending/pending_examples.feature
|
|
88
|
-
- features/spec_files/arbitrary_file_suffix.feature
|
|
89
|
-
- features/step_definitions/additional_cli_steps.rb
|
|
90
|
-
- features/subject/attribute_of_subject.feature
|
|
91
|
-
- features/subject/explicit_subject.feature
|
|
92
|
-
- features/subject/implicit_receiver.feature
|
|
93
|
-
- features/subject/implicit_subject.feature
|
|
94
|
-
- features/support/env.rb
|
|
95
34
|
- lib/autotest/discover.rb
|
|
96
35
|
- lib/autotest/rspec2.rb
|
|
97
36
|
- lib/rspec/autorun.rb
|
|
@@ -103,6 +42,7 @@ files:
|
|
|
103
42
|
- lib/rspec/core/configuration_options.rb
|
|
104
43
|
- lib/rspec/core/deprecation.rb
|
|
105
44
|
- lib/rspec/core/drb_command_line.rb
|
|
45
|
+
- lib/rspec/core/dsl.rb
|
|
106
46
|
- lib/rspec/core/errors.rb
|
|
107
47
|
- lib/rspec/core/example.rb
|
|
108
48
|
- lib/rspec/core/example_group.rb
|
|
@@ -112,7 +52,6 @@ files:
|
|
|
112
52
|
- lib/rspec/core/extensions/instance_eval_with_args.rb
|
|
113
53
|
- lib/rspec/core/extensions/kernel.rb
|
|
114
54
|
- lib/rspec/core/extensions/module_eval_with_args.rb
|
|
115
|
-
- lib/rspec/core/extensions/object.rb
|
|
116
55
|
- lib/rspec/core/formatters/base_formatter.rb
|
|
117
56
|
- lib/rspec/core/formatters/base_text_formatter.rb
|
|
118
57
|
- lib/rspec/core/formatters/documentation_formatter.rb
|
|
@@ -144,13 +83,58 @@ files:
|
|
|
144
83
|
- lib/rspec/core/world.rb
|
|
145
84
|
- lib/rspec/monkey.rb
|
|
146
85
|
- lib/rspec/monkey/spork/test_framework/rspec.rb
|
|
147
|
-
-
|
|
148
|
-
-
|
|
149
|
-
-
|
|
150
|
-
-
|
|
151
|
-
-
|
|
152
|
-
-
|
|
153
|
-
-
|
|
86
|
+
- README.md
|
|
87
|
+
- features/Autotest.md
|
|
88
|
+
- features/README.md
|
|
89
|
+
- features/Upgrade.md
|
|
90
|
+
- features/command_line/README.md
|
|
91
|
+
- features/command_line/configure.feature
|
|
92
|
+
- features/command_line/example_name_option.feature
|
|
93
|
+
- features/command_line/exit_status.feature
|
|
94
|
+
- features/command_line/format_option.feature
|
|
95
|
+
- features/command_line/line_number_appended_to_path.feature
|
|
96
|
+
- features/command_line/line_number_option.feature
|
|
97
|
+
- features/command_line/pattern_option.feature
|
|
98
|
+
- features/command_line/rake_task.feature
|
|
99
|
+
- features/command_line/ruby.feature
|
|
100
|
+
- features/command_line/tag.feature
|
|
101
|
+
- features/configuration/alias_example_to.feature
|
|
102
|
+
- features/configuration/custom_settings.feature
|
|
103
|
+
- features/configuration/default_path.feature
|
|
104
|
+
- features/configuration/fail_fast.feature
|
|
105
|
+
- features/configuration/read_options_from_file.feature
|
|
106
|
+
- features/example_groups/basic_structure.feature
|
|
107
|
+
- features/example_groups/shared_context.feature
|
|
108
|
+
- features/example_groups/shared_examples.feature
|
|
109
|
+
- features/expectation_framework_integration/configure_expectation_framework.feature
|
|
110
|
+
- features/filtering/exclusion_filters.feature
|
|
111
|
+
- features/filtering/if_and_unless.feature
|
|
112
|
+
- features/filtering/inclusion_filters.feature
|
|
113
|
+
- features/filtering/run_all_when_everything_filtered.feature
|
|
114
|
+
- features/formatters/custom_formatter.feature
|
|
115
|
+
- features/formatters/text_formatter.feature
|
|
116
|
+
- features/helper_methods/arbitrary_methods.feature
|
|
117
|
+
- features/helper_methods/let.feature
|
|
118
|
+
- features/helper_methods/modules.feature
|
|
119
|
+
- features/hooks/around_hooks.feature
|
|
120
|
+
- features/hooks/before_and_after_hooks.feature
|
|
121
|
+
- features/hooks/filtering.feature
|
|
122
|
+
- features/metadata/current_example.feature
|
|
123
|
+
- features/metadata/described_class.feature
|
|
124
|
+
- features/metadata/user_defined.feature
|
|
125
|
+
- features/mock_framework_integration/use_any_framework.feature
|
|
126
|
+
- features/mock_framework_integration/use_flexmock.feature
|
|
127
|
+
- features/mock_framework_integration/use_mocha.feature
|
|
128
|
+
- features/mock_framework_integration/use_rr.feature
|
|
129
|
+
- features/mock_framework_integration/use_rspec.feature
|
|
130
|
+
- features/pending/pending_examples.feature
|
|
131
|
+
- features/spec_files/arbitrary_file_suffix.feature
|
|
132
|
+
- features/step_definitions/additional_cli_steps.rb
|
|
133
|
+
- features/subject/attribute_of_subject.feature
|
|
134
|
+
- features/subject/explicit_subject.feature
|
|
135
|
+
- features/subject/implicit_receiver.feature
|
|
136
|
+
- features/subject/implicit_subject.feature
|
|
137
|
+
- features/support/env.rb
|
|
154
138
|
- spec/autotest/discover_spec.rb
|
|
155
139
|
- spec/autotest/failed_results_re_spec.rb
|
|
156
140
|
- spec/autotest/rspec_spec.rb
|
|
@@ -167,19 +151,17 @@ files:
|
|
|
167
151
|
- spec/rspec/core/formatters/base_text_formatter_spec.rb
|
|
168
152
|
- spec/rspec/core/formatters/documentation_formatter_spec.rb
|
|
169
153
|
- spec/rspec/core/formatters/helpers_spec.rb
|
|
170
|
-
- spec/rspec/core/formatters/html_formatted-1.8.6.html
|
|
171
154
|
- spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html
|
|
172
155
|
- spec/rspec/core/formatters/html_formatted-1.8.7.html
|
|
173
|
-
- spec/rspec/core/formatters/html_formatted-1.9.1.html
|
|
174
156
|
- spec/rspec/core/formatters/html_formatted-1.9.2.html
|
|
157
|
+
- spec/rspec/core/formatters/html_formatted-1.9.3.html
|
|
175
158
|
- spec/rspec/core/formatters/html_formatter_spec.rb
|
|
176
159
|
- spec/rspec/core/formatters/progress_formatter_spec.rb
|
|
177
160
|
- spec/rspec/core/formatters/snippet_extractor_spec.rb
|
|
178
|
-
- spec/rspec/core/formatters/text_mate_formatted-1.8.6.html
|
|
179
161
|
- spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html
|
|
180
162
|
- spec/rspec/core/formatters/text_mate_formatted-1.8.7.html
|
|
181
|
-
- spec/rspec/core/formatters/text_mate_formatted-1.9.1.html
|
|
182
163
|
- spec/rspec/core/formatters/text_mate_formatted-1.9.2.html
|
|
164
|
+
- spec/rspec/core/formatters/text_mate_formatted-1.9.3.html
|
|
183
165
|
- spec/rspec/core/formatters/text_mate_formatter_spec.rb
|
|
184
166
|
- spec/rspec/core/hooks_filtering_spec.rb
|
|
185
167
|
- spec/rspec/core/hooks_spec.rb
|
|
@@ -208,7 +190,8 @@ files:
|
|
|
208
190
|
- spec/support/matchers.rb
|
|
209
191
|
- spec/support/shared_example_groups.rb
|
|
210
192
|
- spec/support/spec_files.rb
|
|
211
|
-
|
|
193
|
+
- exe/autospec
|
|
194
|
+
- exe/rspec
|
|
212
195
|
homepage: http://github.com/rspec
|
|
213
196
|
licenses: []
|
|
214
197
|
|
|
@@ -229,22 +212,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
229
212
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
213
|
none: false
|
|
231
214
|
requirements:
|
|
232
|
-
- - "
|
|
215
|
+
- - ">"
|
|
233
216
|
- !ruby/object:Gem::Version
|
|
234
|
-
hash:
|
|
217
|
+
hash: 25
|
|
235
218
|
segments:
|
|
236
|
-
-
|
|
237
|
-
|
|
219
|
+
- 1
|
|
220
|
+
- 3
|
|
221
|
+
- 1
|
|
222
|
+
version: 1.3.1
|
|
238
223
|
requirements: []
|
|
239
224
|
|
|
240
225
|
rubyforge_project: rspec
|
|
241
|
-
rubygems_version: 1.6
|
|
226
|
+
rubygems_version: 1.8.6
|
|
242
227
|
signing_key:
|
|
243
228
|
specification_version: 3
|
|
244
|
-
summary: rspec-core-2.
|
|
229
|
+
summary: rspec-core-2.7.0.rc1
|
|
245
230
|
test_files:
|
|
246
231
|
- features/Autotest.md
|
|
247
|
-
- features/Changelog.md
|
|
248
232
|
- features/README.md
|
|
249
233
|
- features/Upgrade.md
|
|
250
234
|
- features/command_line/README.md
|
|
@@ -254,15 +238,18 @@ test_files:
|
|
|
254
238
|
- features/command_line/format_option.feature
|
|
255
239
|
- features/command_line/line_number_appended_to_path.feature
|
|
256
240
|
- features/command_line/line_number_option.feature
|
|
241
|
+
- features/command_line/pattern_option.feature
|
|
257
242
|
- features/command_line/rake_task.feature
|
|
243
|
+
- features/command_line/ruby.feature
|
|
258
244
|
- features/command_line/tag.feature
|
|
259
245
|
- features/configuration/alias_example_to.feature
|
|
260
246
|
- features/configuration/custom_settings.feature
|
|
247
|
+
- features/configuration/default_path.feature
|
|
261
248
|
- features/configuration/fail_fast.feature
|
|
262
249
|
- features/configuration/read_options_from_file.feature
|
|
263
250
|
- features/example_groups/basic_structure.feature
|
|
264
251
|
- features/example_groups/shared_context.feature
|
|
265
|
-
- features/example_groups/
|
|
252
|
+
- features/example_groups/shared_examples.feature
|
|
266
253
|
- features/expectation_framework_integration/configure_expectation_framework.feature
|
|
267
254
|
- features/filtering/exclusion_filters.feature
|
|
268
255
|
- features/filtering/if_and_unless.feature
|
|
@@ -308,19 +295,17 @@ test_files:
|
|
|
308
295
|
- spec/rspec/core/formatters/base_text_formatter_spec.rb
|
|
309
296
|
- spec/rspec/core/formatters/documentation_formatter_spec.rb
|
|
310
297
|
- spec/rspec/core/formatters/helpers_spec.rb
|
|
311
|
-
- spec/rspec/core/formatters/html_formatted-1.8.6.html
|
|
312
298
|
- spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html
|
|
313
299
|
- spec/rspec/core/formatters/html_formatted-1.8.7.html
|
|
314
|
-
- spec/rspec/core/formatters/html_formatted-1.9.1.html
|
|
315
300
|
- spec/rspec/core/formatters/html_formatted-1.9.2.html
|
|
301
|
+
- spec/rspec/core/formatters/html_formatted-1.9.3.html
|
|
316
302
|
- spec/rspec/core/formatters/html_formatter_spec.rb
|
|
317
303
|
- spec/rspec/core/formatters/progress_formatter_spec.rb
|
|
318
304
|
- spec/rspec/core/formatters/snippet_extractor_spec.rb
|
|
319
|
-
- spec/rspec/core/formatters/text_mate_formatted-1.8.6.html
|
|
320
305
|
- spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html
|
|
321
306
|
- spec/rspec/core/formatters/text_mate_formatted-1.8.7.html
|
|
322
|
-
- spec/rspec/core/formatters/text_mate_formatted-1.9.1.html
|
|
323
307
|
- spec/rspec/core/formatters/text_mate_formatted-1.9.2.html
|
|
308
|
+
- spec/rspec/core/formatters/text_mate_formatted-1.9.3.html
|
|
324
309
|
- spec/rspec/core/formatters/text_mate_formatter_spec.rb
|
|
325
310
|
- spec/rspec/core/hooks_filtering_spec.rb
|
|
326
311
|
- spec/rspec/core/hooks_spec.rb
|
data/.document
DELETED
data/.gitignore
DELETED
data/.rspec
DELETED
|
File without changes
|
data/.travis.yml
DELETED
data/Gemfile
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
source "http://rubygems.org"
|
|
2
|
-
|
|
3
|
-
### rspec libs
|
|
4
|
-
%w[rspec rspec-core rspec-expectations rspec-mocks].each do |lib|
|
|
5
|
-
library_path = File.expand_path("../../#{lib}", __FILE__)
|
|
6
|
-
if File.exist?(library_path)
|
|
7
|
-
gem lib, :path => library_path
|
|
8
|
-
else
|
|
9
|
-
gem lib, :git => "git://github.com/rspec/#{lib}.git"
|
|
10
|
-
end
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
### dev dependencies
|
|
15
|
-
gem "rake", "0.8.7"
|
|
16
|
-
gem "cucumber", "~> 0.10.2"
|
|
17
|
-
gem "aruba", "~> 0.3.6"
|
|
18
|
-
gem "rcov", "0.9.9", :platforms => :mri
|
|
19
|
-
gem "relish", "0.2.0"
|
|
20
|
-
gem "guard-rspec", "0.1.9"
|
|
21
|
-
gem "growl", "1.0.3"
|
|
22
|
-
gem "ZenTest", "~> 4.4.2"
|
|
23
|
-
gem "nokogiri", "1.4.4"
|
|
24
|
-
|
|
25
|
-
platforms :mri_18 do
|
|
26
|
-
gem 'ruby-debug'
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
platforms :mri_19 do
|
|
30
|
-
gem 'linecache19', '0.5.11' # 0.5.12 cannot install on 1.9.1, and 0.5.11 appears to work with both 1.9.1 & 1.9.2
|
|
31
|
-
gem 'ruby-debug19'
|
|
32
|
-
gem 'ruby-debug-base19', RUBY_VERSION == '1.9.1' ? '0.11.23' : '~> 0.11.24'
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
platforms :mri_18, :mri_19 do
|
|
36
|
-
gem "rb-fsevent", "~> 0.3.9"
|
|
37
|
-
gem "ruby-prof", "~> 0.9.2"
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
platforms :jruby do
|
|
41
|
-
gem "jruby-openssl"
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
### rspec-core only
|
|
45
|
-
gem "mocha", "~> 0.9.10"
|
|
46
|
-
gem "rr", "~> 1.0.2"
|
|
47
|
-
gem "flexmock", "0.8.8"
|
|
48
|
-
|
|
49
|
-
### optional runtime deps
|
|
50
|
-
gem "syntax", "1.0.0"
|
data/Guardfile
DELETED
data/License.txt
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
(The MIT License)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2009 Chad Humphries, David Chelimsky
|
|
4
|
-
Copyright (c) 2005 The RSpec Development Team
|
|
5
|
-
|
|
6
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
7
|
-
a copy of this software and associated documentation files (the
|
|
8
|
-
"Software"), to deal in the Software without restriction, including
|
|
9
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
10
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
11
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
12
|
-
the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be
|
|
15
|
-
included in all copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
18
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
19
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
20
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
21
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
22
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
23
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
require "bundler"
|
|
2
|
-
Bundler.setup
|
|
3
|
-
Bundler::GemHelper.install_tasks
|
|
4
|
-
|
|
5
|
-
require "rake"
|
|
6
|
-
require "yaml"
|
|
7
|
-
|
|
8
|
-
require "rake/rdoctask"
|
|
9
|
-
require "rspec/core/rake_task"
|
|
10
|
-
require "rspec/core/version"
|
|
11
|
-
|
|
12
|
-
cucumber_loaded = false
|
|
13
|
-
begin
|
|
14
|
-
require "cucumber/rake/task"
|
|
15
|
-
|
|
16
|
-
Cucumber::Rake::Task.new(:cucumber)
|
|
17
|
-
|
|
18
|
-
class Cucumber::Rake::Task::ForkedCucumberRunner
|
|
19
|
-
# When cucumber shells out, we still need it to run in the context of our
|
|
20
|
-
# bundle.
|
|
21
|
-
def run
|
|
22
|
-
sh "bundle exec #{RUBY} " + args.join(" ")
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
cucumber_loaded = true
|
|
26
|
-
rescue LoadError => e
|
|
27
|
-
puts "unable to load cucumber, some tasks unavailable"
|
|
28
|
-
task :cucumber do
|
|
29
|
-
# no-op
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
desc "Run all examples"
|
|
34
|
-
RSpec::Core::RakeTask.new(:spec) do |t|
|
|
35
|
-
t.rspec_path = 'bin/rspec'
|
|
36
|
-
t.rspec_opts = %w[--color]
|
|
37
|
-
t.verbose = false
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
namespace :rcov do
|
|
42
|
-
task :cleanup do
|
|
43
|
-
rm_rf 'coverage.data'
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
RSpec::Core::RakeTask.new :spec do |t|
|
|
47
|
-
t.rcov = true
|
|
48
|
-
t.rcov_opts = %[-Ilib -Ispec --exclude "gems/*,features"]
|
|
49
|
-
t.rcov_opts << %[--no-html --aggregate coverage.data]
|
|
50
|
-
end
|
|
51
|
-
|
|
52
|
-
if cucumber_loaded
|
|
53
|
-
Cucumber::Rake::Task.new :cucumber do |t|
|
|
54
|
-
t.cucumber_opts = %w{--format progress}
|
|
55
|
-
t.rcov = true
|
|
56
|
-
t.rcov_opts = %[-Ilib -Ispec --exclude "gems/*,features"]
|
|
57
|
-
t.rcov_opts << %[--text-report --sort coverage --aggregate coverage.data]
|
|
58
|
-
end
|
|
59
|
-
else
|
|
60
|
-
task :cucumber do
|
|
61
|
-
# no-op
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
task :rcov => ["rcov:cleanup", "rcov:spec", "rcov:cucumber"]
|
|
68
|
-
|
|
69
|
-
task :default => [:spec, :cucumber]
|
|
70
|
-
|
|
71
|
-
task :clobber do
|
|
72
|
-
rm_rf 'pkg'
|
|
73
|
-
rm_rf 'tmp'
|
|
74
|
-
rm_rf 'coverage'
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
desc "Push docs/cukes to relishapp using the relish-client-gem"
|
|
78
|
-
task :relish, :version do |t, args|
|
|
79
|
-
raise "rake relish[VERSION]" unless args[:version]
|
|
80
|
-
sh "relish push rspec/rspec-core:#{args[:version]}"
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
Rake::RDocTask.new do |rdoc|
|
|
84
|
-
rdoc.rdoc_dir = 'rdoc'
|
|
85
|
-
rdoc.title = "rspec-core #{RSpec::Core::Version::STRING}"
|
|
86
|
-
rdoc.rdoc_files.include('README*')
|
|
87
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
88
|
-
end
|
|
89
|
-
|
data/cucumber.yml
DELETED
data/features/.nav
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
- Upgrade.md
|
|
2
|
-
- Changelog.md
|
|
3
|
-
- Autotest.md
|
|
4
|
-
- example_groups:
|
|
5
|
-
- basic_structure.feature
|
|
6
|
-
- shared_example_group.feature
|
|
7
|
-
- shared_context.feature
|
|
8
|
-
- command_line:
|
|
9
|
-
- configure.feature
|
|
10
|
-
- example_name_option.feature
|
|
11
|
-
- format_option.feature
|
|
12
|
-
- line_number_option.feature
|
|
13
|
-
- tag.feature
|
|
14
|
-
- line_number_appended_to_path.feature
|
|
15
|
-
- exit_status.feature
|
|
16
|
-
- rake_task.feature
|
|
17
|
-
- pending:
|
|
18
|
-
- pending_examples.feature
|
|
19
|
-
- hooks:
|
|
20
|
-
- before_and_after_hooks.feature
|
|
21
|
-
- around_hooks.feature
|
|
22
|
-
- filtering.feature
|
|
23
|
-
- subject:
|
|
24
|
-
- implicit_subject.feature
|
|
25
|
-
- explicit_subject.feature
|
|
26
|
-
- attribute_of_subject.feature
|
|
27
|
-
- implicit_receiver.feature
|
|
28
|
-
- helper_methods:
|
|
29
|
-
- let.feature
|
|
30
|
-
- arbitrary_methods.feature
|
|
31
|
-
- modules.feature
|
|
32
|
-
- metadata:
|
|
33
|
-
- current_example.feature
|
|
34
|
-
- described_class.feature
|
|
35
|
-
- user_defined.feature
|
|
36
|
-
- filtering:
|
|
37
|
-
- inclusion_filters.feature
|
|
38
|
-
- exclusion_filters.feature
|
|
39
|
-
- if_and_unless.feature
|
|
40
|
-
- run_all_when_everything_filtered.feature
|
|
41
|
-
- configuration:
|
|
42
|
-
- read_options_from_file.feature
|
|
43
|
-
- fail_fast.feature
|
|
44
|
-
- custom_settings.feature
|
|
45
|
-
- alias_example_to.feature
|
|
46
|
-
- expectation_framework_integration:
|
|
47
|
-
- configure_expectation_framework.feature
|
|
48
|
-
- mock_framework_integration:
|
|
49
|
-
- use_rspec.feature
|
|
50
|
-
- use_flexmock.feature
|
|
51
|
-
- use_mocha.feature
|
|
52
|
-
- use_rr.feature
|
|
53
|
-
- use_any_framework.feature
|
|
54
|
-
- formatters:
|
|
55
|
-
- custom_formatter.feature
|
|
56
|
-
- spec_files:
|
|
57
|
-
- arbitrary_file_suffix.feature
|