rspec-core 2.6.4 → 2.7.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/{bin → exe}/autospec +0 -0
- data/{bin → exe}/rspec +0 -0
- 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.rb +1 -23
- data/lib/rspec/core/configuration.rb +64 -16
- data/lib/rspec/core/configuration_options.rb +11 -4
- data/lib/rspec/core/example.rb +10 -7
- data/lib/rspec/core/example_group.rb +34 -18
- data/lib/rspec/core/formatters/base_text_formatter.rb +10 -2
- 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 +2 -2
- data/lib/rspec/core/let.rb +5 -5
- data/lib/rspec/core/metadata.rb +136 -94
- data/lib/rspec/core/option_parser.rb +10 -5
- data/lib/rspec/core/pending.rb +2 -1
- data/lib/rspec/core/rake_task.rb +26 -15
- data/lib/rspec/core/reporter.rb +2 -3
- 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 +4 -8
- 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 +65 -13
- data/spec/rspec/core/configuration_spec.rb +148 -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 +149 -1
- data/spec/rspec/core/formatters/helpers_spec.rb +8 -8
- data/spec/rspec/core/formatters/html_formatted-1.8.7-jruby.html +85 -17
- 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 +86 -18
- 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 -49
- data/spec/support/shared_example_groups.rb +3 -3
- data/spec/support/spec_files.rb +8 -8
- metadata +79 -93
- data/.document +0 -5
- data/.gitignore +0 -12
- data/.rspec +0 -0
- data/.travis.yml +0 -9
- data/Changelog.md +0 -305
- data/Gemfile +0 -49
- data/Guardfile +0 -5
- data/License.txt +0 -23
- data/Rakefile +0 -93
- data/cucumber.yml +0 -2
- data/features/.nav +0 -57
- 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.txt +0 -1126
- 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
@@ -16,9 +16,24 @@ describe RSpec::Core::Example, :parent_metadata => 'sample' do
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
+
describe "#exception" do
|
20
|
+
it "supplies the first exception raised, if any" do
|
21
|
+
example = example_group.example { raise "first" }
|
22
|
+
example_group.after { raise "second" }
|
23
|
+
example_group.run
|
24
|
+
example.exception.message.should eq("first")
|
25
|
+
end
|
26
|
+
|
27
|
+
it "returns nil if there is no exception" do
|
28
|
+
example = example_group.example('example') { }
|
29
|
+
example_group.run
|
30
|
+
example.exception.should be_nil
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
19
34
|
describe "auto-generated example descriptions" do
|
20
35
|
let(:generated_description) { "the generated description" }
|
21
|
-
let(:rspec_example) { example_group.specify { 5.should
|
36
|
+
let(:rspec_example) { example_group.specify { 5.should eq(5) } }
|
22
37
|
before(:each) { RSpec::Matchers.stub(:generated_description => generated_description) }
|
23
38
|
|
24
39
|
def expect_with(*frameworks)
|
@@ -71,13 +86,13 @@ describe RSpec::Core::Example, :parent_metadata => 'sample' do
|
|
71
86
|
|
72
87
|
describe '#described_class' do
|
73
88
|
it "returns the class (if any) of the outermost example group" do
|
74
|
-
described_class.should
|
89
|
+
described_class.should eq(RSpec::Core::Example)
|
75
90
|
end
|
76
91
|
end
|
77
92
|
|
78
93
|
describe "accessing metadata within a running example" do
|
79
94
|
it "has a reference to itself when running" do
|
80
|
-
example.description.should
|
95
|
+
example.description.should eq("has a reference to itself when running")
|
81
96
|
end
|
82
97
|
|
83
98
|
it "can access the example group's top level metadata as if it were its own" do
|
@@ -88,7 +103,7 @@ describe RSpec::Core::Example, :parent_metadata => 'sample' do
|
|
88
103
|
|
89
104
|
describe "accessing options within a running example" do
|
90
105
|
it "can look up option values by key", :demo => :data do
|
91
|
-
example.options[:demo].should
|
106
|
+
example.options[:demo].should eq(:data)
|
92
107
|
end
|
93
108
|
end
|
94
109
|
|
@@ -105,7 +120,7 @@ describe RSpec::Core::Example, :parent_metadata => 'sample' do
|
|
105
120
|
after_run = false
|
106
121
|
group = RSpec::Core::ExampleGroup.describe do
|
107
122
|
after(:each) { after_run = true }
|
108
|
-
example('example') { 1.should
|
123
|
+
example('example') { 1.should eq(1) }
|
109
124
|
end
|
110
125
|
group.run
|
111
126
|
after_run.should be_true, "expected after(:each) to be run"
|
@@ -115,7 +130,7 @@ describe RSpec::Core::Example, :parent_metadata => 'sample' do
|
|
115
130
|
after_run = false
|
116
131
|
group = RSpec::Core::ExampleGroup.describe do
|
117
132
|
after(:each) { after_run = true }
|
118
|
-
example('example') { 1.should
|
133
|
+
example('example') { 1.should eq(2) }
|
119
134
|
end
|
120
135
|
group.run
|
121
136
|
after_run.should be_true, "expected after(:each) to be run"
|
@@ -137,7 +152,7 @@ describe RSpec::Core::Example, :parent_metadata => 'sample' do
|
|
137
152
|
group = RSpec::Core::ExampleGroup.describe do
|
138
153
|
after(:each) { after_run = true }
|
139
154
|
after(:each) { raise "FOO" }
|
140
|
-
example('example') { 1.should
|
155
|
+
example('example') { 1.should eq(1) }
|
141
156
|
end
|
142
157
|
group.run
|
143
158
|
after_run.should be_true, "expected after(:each) to be run"
|
@@ -146,11 +161,11 @@ describe RSpec::Core::Example, :parent_metadata => 'sample' do
|
|
146
161
|
it "stores the exception" do
|
147
162
|
group = RSpec::Core::ExampleGroup.describe
|
148
163
|
group.after(:each) { raise "FOO" }
|
149
|
-
example = group.example('example') { 1.should
|
164
|
+
example = group.example('example') { 1.should eq(1) }
|
150
165
|
|
151
166
|
group.run
|
152
167
|
|
153
|
-
example.metadata[:execution_result][:exception].message.should
|
168
|
+
example.metadata[:execution_result][:exception].message.should eq("FOO")
|
154
169
|
end
|
155
170
|
end
|
156
171
|
|
@@ -185,14 +200,15 @@ describe RSpec::Core::Example, :parent_metadata => 'sample' do
|
|
185
200
|
after(:each) { @after_each = :after_each }
|
186
201
|
after(:all) { @after_all = :after_all }
|
187
202
|
end
|
188
|
-
|
189
|
-
@
|
203
|
+
group.example("does something") do
|
204
|
+
@before_all.should eq(:before_all)
|
205
|
+
@before_each.should eq(:before_each)
|
190
206
|
end
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
207
|
+
group.run(double.as_null_object).should be_true
|
208
|
+
group.new do |example|
|
209
|
+
%w[@before_all @before_each @after_each @after_all].each do |ivar|
|
210
|
+
example.instance_variable_get(ivar).should be_nil
|
211
|
+
end
|
196
212
|
end
|
197
213
|
end
|
198
214
|
|
@@ -269,4 +285,5 @@ describe RSpec::Core::Example, :parent_metadata => 'sample' do
|
|
269
285
|
end
|
270
286
|
|
271
287
|
end
|
288
|
+
|
272
289
|
end
|
@@ -8,7 +8,7 @@ describe RSpec::Core::Formatters::BaseFormatter do
|
|
8
8
|
|
9
9
|
describe "backtrace_line" do
|
10
10
|
it "trims current working directory" do
|
11
|
-
formatter.__send__(:backtrace_line, File.expand_path(__FILE__)).should
|
11
|
+
formatter.__send__(:backtrace_line, File.expand_path(__FILE__)).should eq("./spec/rspec/core/formatters/base_formatter_spec.rb")
|
12
12
|
end
|
13
13
|
|
14
14
|
it "leaves the original line intact" do
|
@@ -51,7 +51,7 @@ describe RSpec::Core::Formatters::BaseFormatter do
|
|
51
51
|
|
52
52
|
example = mock(:Example, :file_path => __FILE__)
|
53
53
|
formatter.send(:read_failed_line, exception, example).should
|
54
|
-
eql
|
54
|
+
eql(%Q{ exception = mock(:Exception, :backtrace => [ "\#{__FILE__}:\#{__LINE__}"])\n})
|
55
55
|
end
|
56
56
|
|
57
57
|
end
|
@@ -73,7 +73,7 @@ describe RSpec::Core::Formatters::BaseFormatter do
|
|
73
73
|
end
|
74
74
|
|
75
75
|
it "removes lines from rspec and lines that come before the invocation of the at_exit autorun hook" do
|
76
|
-
formatter.format_backtrace(backtrace, stub.as_null_object).should
|
76
|
+
formatter.format_backtrace(backtrace, stub.as_null_object).should eq(["./my_spec.rb:5"])
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
@@ -47,7 +47,7 @@ describe RSpec::Core::Formatters::BaseTextFormatter do
|
|
47
47
|
run_all_and_dump_failures
|
48
48
|
|
49
49
|
output.string.should =~ /group name example name/m
|
50
|
-
output.string.should =~ /(\s+)expected \"that\"\n\1 got \"this\"/m
|
50
|
+
output.string.should =~ /(\s+)expected: \"that\"\n\1 got: \"this\"/m
|
51
51
|
end
|
52
52
|
|
53
53
|
context "with an exception without a message" do
|
@@ -165,6 +165,154 @@ describe RSpec::Core::Formatters::BaseTextFormatter do
|
|
165
165
|
end
|
166
166
|
end
|
167
167
|
|
168
|
+
describe "#dump_pending" do
|
169
|
+
let(:group) { RSpec::Core::ExampleGroup.describe("group name") }
|
170
|
+
|
171
|
+
before { RSpec.configuration.stub(:color_enabled?) { false } }
|
172
|
+
|
173
|
+
def run_all_and_dump_pending
|
174
|
+
group.run(formatter)
|
175
|
+
formatter.dump_pending
|
176
|
+
end
|
177
|
+
|
178
|
+
context "with show_failures_in_pending_blocks setting enabled" do
|
179
|
+
before { RSpec.configuration.stub(:show_failures_in_pending_blocks?) { true } }
|
180
|
+
|
181
|
+
it "preserves formatting" do
|
182
|
+
group.example("example name") { pending { "this".should eq("that") } }
|
183
|
+
|
184
|
+
run_all_and_dump_pending
|
185
|
+
|
186
|
+
output.string.should =~ /group name example name/m
|
187
|
+
output.string.should =~ /(\s+)expected: \"that\"\n\1 got: \"this\"/m
|
188
|
+
end
|
189
|
+
|
190
|
+
context "with an exception without a message" do
|
191
|
+
it "does not throw NoMethodError" do
|
192
|
+
exception_without_message = Exception.new()
|
193
|
+
exception_without_message.stub(:message) { nil }
|
194
|
+
group.example("example name") { pending { raise exception_without_message } }
|
195
|
+
expect { run_all_and_dump_pending }.not_to raise_error(NoMethodError)
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
context "with an exception class other than RSpec" do
|
200
|
+
it "does not show the error class" do
|
201
|
+
group.example("example name") { pending { raise NameError.new('foo') } }
|
202
|
+
run_all_and_dump_pending
|
203
|
+
output.string.should =~ /NameError/m
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
context "with a failed expectation (rspec-expectations)" do
|
208
|
+
it "does not show the error class" do
|
209
|
+
group.example("example name") { pending { "this".should eq("that") } }
|
210
|
+
run_all_and_dump_pending
|
211
|
+
output.string.should_not =~ /RSpec/m
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
context "with a failed message expectation (rspec-mocks)" do
|
216
|
+
it "does not show the error class" do
|
217
|
+
group.example("example name") { pending { "this".should_receive("that") } }
|
218
|
+
run_all_and_dump_pending
|
219
|
+
output.string.should_not =~ /RSpec/m
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
context 'for #share_examples_for' do
|
224
|
+
it 'outputs the name and location' do
|
225
|
+
|
226
|
+
share_examples_for 'foo bar' do
|
227
|
+
it("example name") { pending { "this".should eq("that") } }
|
228
|
+
end
|
229
|
+
|
230
|
+
line = __LINE__.next
|
231
|
+
group.it_should_behave_like('foo bar')
|
232
|
+
|
233
|
+
run_all_and_dump_pending
|
234
|
+
|
235
|
+
output.string.should include(
|
236
|
+
'Shared Example Group: "foo bar" called from ' +
|
237
|
+
"./spec/rspec/core/formatters/base_text_formatter_spec.rb:#{line}"
|
238
|
+
)
|
239
|
+
end
|
240
|
+
|
241
|
+
context 'that contains nested example groups' do
|
242
|
+
it 'outputs the name and location' do
|
243
|
+
share_examples_for 'foo bar' do
|
244
|
+
describe 'nested group' do
|
245
|
+
it("example name") { pending { "this".should eq("that") } }
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
line = __LINE__.next
|
250
|
+
group.it_should_behave_like('foo bar')
|
251
|
+
|
252
|
+
run_all_and_dump_pending
|
253
|
+
|
254
|
+
output.string.should include(
|
255
|
+
'Shared Example Group: "foo bar" called from ' +
|
256
|
+
"./spec/rspec/core/formatters/base_text_formatter_spec.rb:#{line}"
|
257
|
+
)
|
258
|
+
end
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
context 'for #share_as' do
|
263
|
+
it 'outputs the name and location' do
|
264
|
+
|
265
|
+
share_as :FooBar2 do
|
266
|
+
it("example name") { pending { "this".should eq("that") } }
|
267
|
+
end
|
268
|
+
|
269
|
+
line = __LINE__.next
|
270
|
+
group.send(:include, FooBar2)
|
271
|
+
|
272
|
+
run_all_and_dump_pending
|
273
|
+
|
274
|
+
output.string.should include(
|
275
|
+
'Shared Example Group: "FooBar2" called from ' +
|
276
|
+
"./spec/rspec/core/formatters/base_text_formatter_spec.rb:#{line}"
|
277
|
+
)
|
278
|
+
end
|
279
|
+
|
280
|
+
context 'that contains nested example groups' do
|
281
|
+
it 'outputs the name and location' do
|
282
|
+
|
283
|
+
share_as :NestedFoo2 do
|
284
|
+
describe 'nested group' do
|
285
|
+
describe 'hell' do
|
286
|
+
it("example name") { pending { "this".should eq("that") } }
|
287
|
+
end
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
291
|
+
line = __LINE__.next
|
292
|
+
group.send(:include, NestedFoo2)
|
293
|
+
|
294
|
+
run_all_and_dump_pending
|
295
|
+
|
296
|
+
output.string.should include(
|
297
|
+
'Shared Example Group: "NestedFoo2" called from ' +
|
298
|
+
"./spec/rspec/core/formatters/base_text_formatter_spec.rb:#{line}"
|
299
|
+
)
|
300
|
+
end
|
301
|
+
end
|
302
|
+
end
|
303
|
+
end
|
304
|
+
|
305
|
+
context "with show_failures_in_pending_blocks setting disabled" do
|
306
|
+
before { RSpec.configuration.stub(:show_failures_in_pending_blocks?) { false } }
|
307
|
+
|
308
|
+
it "does not output the failure information" do
|
309
|
+
group.example("example name") { pending { "this".should eq("that") } }
|
310
|
+
run_all_and_dump_pending
|
311
|
+
output.string.should_not =~ /(\s+)expected: \"that\"\n\1 got: \"this\"/m
|
312
|
+
end
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
168
316
|
describe "#dump_profile" do
|
169
317
|
before do
|
170
318
|
formatter.stub(:examples) do
|
@@ -7,22 +7,22 @@ describe RSpec::Core::Formatters::Helpers do
|
|
7
7
|
describe "format seconds" do
|
8
8
|
context "sub second times" do
|
9
9
|
it "returns 5 digits of precision" do
|
10
|
-
helper.format_seconds(0.000006).should
|
10
|
+
helper.format_seconds(0.000006).should eq("0.00001")
|
11
11
|
end
|
12
12
|
|
13
13
|
it "strips off trailing zeroes beyond sub-second precision" do
|
14
|
-
helper.format_seconds(0.020000).should
|
14
|
+
helper.format_seconds(0.020000).should eq("0.02")
|
15
15
|
end
|
16
16
|
|
17
17
|
context "0" do
|
18
18
|
it "strips off trailing zeroes" do
|
19
|
-
helper.format_seconds(0.00000000001).should
|
19
|
+
helper.format_seconds(0.00000000001).should eq("0")
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
23
|
context "> 1" do
|
24
24
|
it "strips off trailing zeroes" do
|
25
|
-
helper.format_seconds(1.00000000001).should
|
25
|
+
helper.format_seconds(1.00000000001).should eq("1")
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -30,13 +30,13 @@ describe RSpec::Core::Formatters::Helpers do
|
|
30
30
|
context "second and greater times" do
|
31
31
|
|
32
32
|
it "returns 2 digits of precision" do
|
33
|
-
helper.format_seconds(50.330340).should
|
33
|
+
helper.format_seconds(50.330340).should eq("50.33")
|
34
34
|
end
|
35
35
|
|
36
36
|
it "returns human friendly elasped time" do
|
37
|
-
helper.format_seconds(50.1).should
|
38
|
-
helper.format_seconds(5).should
|
39
|
-
helper.format_seconds(5.0).should
|
37
|
+
helper.format_seconds(50.1).should eq("50.1")
|
38
|
+
helper.format_seconds(5).should eq("5")
|
39
|
+
helper.format_seconds(5.0).should eq("5")
|
40
40
|
end
|
41
41
|
|
42
42
|
end
|
@@ -313,13 +313,36 @@ a {
|
|
313
313
|
<div class="failure" id="failure_1">
|
314
314
|
<div class="message"><pre>RSpec::Core::PendingExampleFixedError</pre></div>
|
315
315
|
<div class="backtrace"><pre>./spec/rspec/core/resources/formatter_specs.rb:18:in `(root)'
|
316
|
-
org/jruby/RubyKernel.java:
|
317
|
-
org/jruby/RubyArray.java:2336:in `collect'
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
316
|
+
org/jruby/RubyKernel.java:2061:in `instance_eval'
|
317
|
+
org/jruby/RubyArray.java:2336:in `collect'
|
318
|
+
org/jruby/RubyArray.java:2336:in `collect'
|
319
|
+
org/jruby/RubyArray.java:2336:in `collect'
|
320
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:24:in `Formatters'
|
321
|
+
org/jruby/RubyKernel.java:2061:in `instance_eval'
|
322
|
+
org/jruby/RubyHash.java:1063:in `fetch'
|
323
|
+
org/jruby/RubyProc.java:274:in `call'
|
324
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `Formatters'
|
325
|
+
org/jruby/RubyIO.java:1111:in `open'
|
326
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `Formatters'
|
327
|
+
org/jruby/RubyDir.java:335:in `chdir'
|
328
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:45:in `Formatters'
|
329
|
+
org/jruby/RubyKernel.java:2061:in `instance_eval'
|
330
|
+
org/jruby/RubyProc.java:274:in `call'
|
331
|
+
org/jruby/RubyProc.java:229:in `call'
|
332
|
+
org/jruby/RubyKernel.java:2061:in `instance_eval'
|
333
|
+
org/jruby/RubyKernel.java:2078:in `instance_exec'
|
334
|
+
org/jruby/RubyProc.java:274:in `call'
|
335
|
+
org/jruby/RubyProc.java:229:in `call'
|
336
|
+
org/jruby/RubyArray.java:2336:in `collect'
|
337
|
+
org/jruby/RubyArray.java:2336:in `collect'
|
338
|
+
org/jruby/RubyArray.java:2336:in `collect'
|
339
|
+
org/jruby/RubyProc.java:274:in `call'
|
340
|
+
org/jruby/RubyProc.java:233:in `call'</pre></div>
|
341
|
+
<pre class="ruby"><code><span class="linenum">16</span> <span class="ident">context</span> <span class="punct">"</span><span class="string">with content that would pass</span><span class="punct">"</span> <span class="keyword">do</span>
|
342
|
+
<span class="linenum">17</span> <span class="ident">it</span> <span class="punct">"</span><span class="string">fails</span><span class="punct">"</span> <span class="keyword">do</span>
|
343
|
+
<span class="offending"><span class="linenum">18</span> <span class="ident">pending</span> <span class="keyword">do</span></span>
|
344
|
+
<span class="linenum">19</span> <span class="number">1</span><span class="punct">.</span><span class="ident">should</span> <span class="ident">eq</span><span class="punct">(</span><span class="number">1</span><span class="punct">)</span>
|
345
|
+
<span class="linenum">20</span> <span class="keyword">end</span></code></pre>
|
323
346
|
</div>
|
324
347
|
</dd>
|
325
348
|
</dl>
|
@@ -341,18 +364,41 @@ org/jruby/RubyArray.java:2336:in `collect'</pre></div>
|
|
341
364
|
<span class="failed_spec_name">fails</span>
|
342
365
|
<div class="failure" id="failure_2">
|
343
366
|
<div class="message"><pre>
|
344
|
-
expected 2
|
345
|
-
got 1
|
367
|
+
expected: 2
|
368
|
+
got: 1
|
346
369
|
|
347
370
|
(compared using ==)
|
348
371
|
</pre></div>
|
349
372
|
<div class="backtrace"><pre>./spec/rspec/core/resources/formatter_specs.rb:33:in `(root)'
|
350
|
-
org/jruby/RubyKernel.java:
|
351
|
-
org/jruby/RubyArray.java:2336:in `collect'
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
373
|
+
org/jruby/RubyKernel.java:2061:in `instance_eval'
|
374
|
+
org/jruby/RubyArray.java:2336:in `collect'
|
375
|
+
org/jruby/RubyArray.java:2336:in `collect'
|
376
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:24:in `Formatters'
|
377
|
+
org/jruby/RubyKernel.java:2061:in `instance_eval'
|
378
|
+
org/jruby/RubyHash.java:1063:in `fetch'
|
379
|
+
org/jruby/RubyProc.java:274:in `call'
|
380
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `Formatters'
|
381
|
+
org/jruby/RubyIO.java:1111:in `open'
|
382
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `Formatters'
|
383
|
+
org/jruby/RubyDir.java:335:in `chdir'
|
384
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:45:in `Formatters'
|
385
|
+
org/jruby/RubyKernel.java:2061:in `instance_eval'
|
386
|
+
org/jruby/RubyProc.java:274:in `call'
|
387
|
+
org/jruby/RubyProc.java:229:in `call'
|
388
|
+
org/jruby/RubyKernel.java:2061:in `instance_eval'
|
389
|
+
org/jruby/RubyKernel.java:2078:in `instance_exec'
|
390
|
+
org/jruby/RubyProc.java:274:in `call'
|
391
|
+
org/jruby/RubyProc.java:229:in `call'
|
392
|
+
org/jruby/RubyArray.java:2336:in `collect'
|
393
|
+
org/jruby/RubyArray.java:2336:in `collect'
|
394
|
+
org/jruby/RubyArray.java:2336:in `collect'
|
395
|
+
org/jruby/RubyProc.java:274:in `call'
|
396
|
+
org/jruby/RubyProc.java:233:in `call'</pre></div>
|
397
|
+
<pre class="ruby"><code><span class="linenum">31</span><span class="ident">describe</span> <span class="punct">"</span><span class="string">failing spec</span><span class="punct">"</span> <span class="keyword">do</span>
|
398
|
+
<span class="linenum">32</span> <span class="ident">it</span> <span class="punct">"</span><span class="string">fails</span><span class="punct">"</span> <span class="keyword">do</span>
|
399
|
+
<span class="offending"><span class="linenum">33</span> <span class="number">1</span><span class="punct">.</span><span class="ident">should</span> <span class="ident">eq</span><span class="punct">(</span><span class="number">2</span><span class="punct">)</span></span>
|
400
|
+
<span class="linenum">34</span> <span class="keyword">end</span>
|
401
|
+
<span class="linenum">35</span><span class="keyword">end</span></code></pre>
|
356
402
|
</div>
|
357
403
|
</dd>
|
358
404
|
</dl>
|
@@ -370,8 +416,30 @@ org/jruby/RubyArray.java:2336:in `collect'</pre></div>
|
|
370
416
|
<div class="backtrace"><pre>(erb):1:in `result'
|
371
417
|
org/jruby/RubyKernel.java:1088:in `eval'
|
372
418
|
./spec/rspec/core/resources/formatter_specs.rb:41:in `(root)'
|
373
|
-
org/jruby/RubyKernel.java:
|
374
|
-
org/jruby/RubyArray.java:2336:in `collect'
|
419
|
+
org/jruby/RubyKernel.java:2061:in `instance_eval'
|
420
|
+
org/jruby/RubyArray.java:2336:in `collect'
|
421
|
+
org/jruby/RubyArray.java:2336:in `collect'
|
422
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:24:in `Formatters'
|
423
|
+
org/jruby/RubyKernel.java:2061:in `instance_eval'
|
424
|
+
org/jruby/RubyHash.java:1063:in `fetch'
|
425
|
+
org/jruby/RubyProc.java:274:in `call'
|
426
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `Formatters'
|
427
|
+
org/jruby/RubyIO.java:1111:in `open'
|
428
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:46:in `Formatters'
|
429
|
+
org/jruby/RubyDir.java:335:in `chdir'
|
430
|
+
./spec/rspec/core/formatters/html_formatter_spec.rb:45:in `Formatters'
|
431
|
+
org/jruby/RubyKernel.java:2061:in `instance_eval'
|
432
|
+
org/jruby/RubyProc.java:274:in `call'
|
433
|
+
org/jruby/RubyProc.java:229:in `call'
|
434
|
+
org/jruby/RubyKernel.java:2061:in `instance_eval'
|
435
|
+
org/jruby/RubyKernel.java:2078:in `instance_exec'
|
436
|
+
org/jruby/RubyProc.java:274:in `call'
|
437
|
+
org/jruby/RubyProc.java:229:in `call'
|
438
|
+
org/jruby/RubyArray.java:2336:in `collect'
|
439
|
+
org/jruby/RubyArray.java:2336:in `collect'
|
440
|
+
org/jruby/RubyArray.java:2336:in `collect'
|
441
|
+
org/jruby/RubyProc.java:274:in `call'
|
442
|
+
org/jruby/RubyProc.java:233:in `call'</pre></div>
|
375
443
|
<pre class="ruby"><code><span class="linenum">-1</span><span class="comment"># Couldn't get snippet for (erb)</span></code></pre>
|
376
444
|
</div>
|
377
445
|
</dd>
|