rspec-core 2.3.1 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.markdown +22 -0
- data/Rakefile +2 -2
- data/features/command_line/README.md +6 -0
- data/features/command_line/configure.feature +16 -14
- data/features/command_line/example_name_option.feature +3 -3
- data/features/command_line/format_option.feature +73 -0
- data/features/command_line/line_number_appended_to_path.feature +1 -1
- data/features/command_line/line_number_option.feature +2 -2
- data/features/command_line/tag.feature +7 -7
- data/features/configuration/read_options_from_file.feature +29 -16
- data/features/hooks/before_and_after_hooks.feature +9 -14
- data/features/hooks/filtering.feature +174 -0
- data/features/step_definitions/additional_cli_steps.rb +4 -0
- data/features/subject/attribute_of_subject.feature +68 -18
- data/lib/rspec/core/command_line_configuration.rb +16 -16
- data/lib/rspec/core/configuration.rb +14 -15
- data/lib/rspec/core/configuration_options.rb +46 -22
- data/lib/rspec/core/example.rb +16 -6
- data/lib/rspec/core/example_group.rb +11 -11
- data/lib/rspec/core/formatters/base_text_formatter.rb +2 -1
- data/lib/rspec/core/hooks.rb +8 -8
- data/lib/rspec/core/option_parser.rb +13 -3
- data/lib/rspec/core/pending.rb +2 -0
- data/lib/rspec/core/rake_task.rb +1 -1
- data/lib/rspec/core/subject.rb +2 -0
- data/lib/rspec/core/version.rb +1 -1
- data/lib/rspec/core/world.rb +2 -2
- data/spec/rspec/core/configuration_options_spec.rb +147 -151
- data/spec/rspec/core/configuration_spec.rb +67 -19
- data/spec/rspec/core/example_spec.rb +12 -10
- data/spec/rspec/core/formatters/base_text_formatter_spec.rb +25 -1
- data/spec/rspec/core/formatters/html_formatted-1.8.6.html +5 -5
- data/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +37 -24
- data/spec/rspec/core/formatters/html_formatted-1.8.7.html +5 -5
- data/spec/rspec/core/formatters/html_formatted-1.9.1.html +5 -5
- data/spec/rspec/core/formatters/html_formatted-1.9.2.html +5 -5
- data/spec/rspec/core/formatters/html_formatter_spec.rb +7 -7
- data/spec/rspec/core/formatters/text_mate_formatted-1.8.6.html +19 -19
- data/spec/rspec/core/formatters/text_mate_formatted-1.8.7-jruby.html +51 -33
- data/spec/rspec/core/formatters/text_mate_formatted-1.8.7.html +19 -19
- data/spec/rspec/core/formatters/text_mate_formatted-1.9.1.html +26 -26
- data/spec/rspec/core/formatters/text_mate_formatted-1.9.2.html +26 -26
- data/spec/rspec/core/formatters/text_mate_formatter_spec.rb +7 -7
- data/spec/rspec/core/hooks_filtering_spec.rb +54 -0
- data/spec/rspec/core/option_parser_spec.rb +53 -17
- data/spec/rspec/core/rake_task_spec.rb +21 -0
- data/spec/spec_helper.rb +1 -1
- metadata +14 -8
@@ -136,5 +136,26 @@ module RSpec::Core
|
|
136
136
|
task.__send__(:files_to_run).should eq(["path/to/file"])
|
137
137
|
end
|
138
138
|
end
|
139
|
+
|
140
|
+
context "with paths with quotes" do
|
141
|
+
before do
|
142
|
+
@tmp_dir = File.expand_path('./tmp/rake_task_example/')
|
143
|
+
FileUtils.mkdir_p @tmp_dir
|
144
|
+
@task = RakeTask.new do |t|
|
145
|
+
t.pattern = File.join(@tmp_dir, "*spec.rb")
|
146
|
+
end
|
147
|
+
["first_spec.rb", "second_\"spec.rb", "third_'spec.rb"].each do |file_name|
|
148
|
+
FileUtils.touch(File.join(@tmp_dir, file_name))
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
it "escapes the quotes" do
|
153
|
+
@task.__send__(:files_to_run).should eq([
|
154
|
+
File.join(@tmp_dir, "first_spec.rb"),
|
155
|
+
File.join(@tmp_dir, "second_\\\"spec.rb"),
|
156
|
+
File.join(@tmp_dir, "third_\\'spec.rb")
|
157
|
+
])
|
158
|
+
end
|
159
|
+
end
|
139
160
|
end
|
140
161
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 2
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 2.
|
7
|
+
- 4
|
8
|
+
- 0
|
9
|
+
version: 2.4.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Chad Humphries
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-01-02 00:00:00 -06:00
|
19
19
|
default_executable: rspec
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -46,9 +46,11 @@ files:
|
|
46
46
|
- features/Changelog.md
|
47
47
|
- features/README.markdown
|
48
48
|
- features/Upgrade.md
|
49
|
+
- features/command_line/README.md
|
49
50
|
- features/command_line/configure.feature
|
50
51
|
- features/command_line/example_name_option.feature
|
51
52
|
- features/command_line/exit_status.feature
|
53
|
+
- features/command_line/format_option.feature
|
52
54
|
- features/command_line/line_number_appended_to_path.feature
|
53
55
|
- features/command_line/line_number_option.feature
|
54
56
|
- features/command_line/rake_task.feature
|
@@ -66,6 +68,7 @@ files:
|
|
66
68
|
- features/formatters/custom_formatter.feature
|
67
69
|
- features/hooks/around_hooks.feature
|
68
70
|
- features/hooks/before_and_after_hooks.feature
|
71
|
+
- features/hooks/filtering.feature
|
69
72
|
- features/metadata/described_class.feature
|
70
73
|
- features/mock_framework_integration/use_any_framework.feature
|
71
74
|
- features/mock_framework_integration/use_flexmock.feature
|
@@ -195,7 +198,7 @@ licenses: []
|
|
195
198
|
post_install_message: |
|
196
199
|
**************************************************
|
197
200
|
|
198
|
-
Thank you for installing rspec-core-2.
|
201
|
+
Thank you for installing rspec-core-2.4.0
|
199
202
|
|
200
203
|
Please be sure to look at the upgrade instructions to see what might have
|
201
204
|
changed since the last release:
|
@@ -213,7 +216,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
213
216
|
requirements:
|
214
217
|
- - ">="
|
215
218
|
- !ruby/object:Gem::Version
|
216
|
-
hash:
|
219
|
+
hash: -2078770965250324300
|
217
220
|
segments:
|
218
221
|
- 0
|
219
222
|
version: "0"
|
@@ -222,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
225
|
requirements:
|
223
226
|
- - ">="
|
224
227
|
- !ruby/object:Gem::Version
|
225
|
-
hash:
|
228
|
+
hash: -2078770965250324300
|
226
229
|
segments:
|
227
230
|
- 0
|
228
231
|
version: "0"
|
@@ -232,14 +235,16 @@ rubyforge_project: rspec
|
|
232
235
|
rubygems_version: 1.3.7
|
233
236
|
signing_key:
|
234
237
|
specification_version: 3
|
235
|
-
summary: rspec-core-2.
|
238
|
+
summary: rspec-core-2.4.0
|
236
239
|
test_files:
|
237
240
|
- features/Changelog.md
|
238
241
|
- features/README.markdown
|
239
242
|
- features/Upgrade.md
|
243
|
+
- features/command_line/README.md
|
240
244
|
- features/command_line/configure.feature
|
241
245
|
- features/command_line/example_name_option.feature
|
242
246
|
- features/command_line/exit_status.feature
|
247
|
+
- features/command_line/format_option.feature
|
243
248
|
- features/command_line/line_number_appended_to_path.feature
|
244
249
|
- features/command_line/line_number_option.feature
|
245
250
|
- features/command_line/rake_task.feature
|
@@ -257,6 +262,7 @@ test_files:
|
|
257
262
|
- features/formatters/custom_formatter.feature
|
258
263
|
- features/hooks/around_hooks.feature
|
259
264
|
- features/hooks/before_and_after_hooks.feature
|
265
|
+
- features/hooks/filtering.feature
|
260
266
|
- features/metadata/described_class.feature
|
261
267
|
- features/mock_framework_integration/use_any_framework.feature
|
262
268
|
- features/mock_framework_integration/use_flexmock.feature
|