rspec 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/History.rdoc +59 -32
- data/Manifest.txt +6 -0
- data/Rakefile +2 -2
- data/examples/passing/options_example.rb +31 -0
- data/examples/passing/options_formatter.rb +20 -0
- data/features/expectations/expect_change.feature +65 -0
- data/features/expectations/expect_error.feature +44 -0
- data/lib/spec/example/example_group_factory.rb +4 -2
- data/lib/spec/example/example_group_methods.rb +5 -1
- data/lib/spec/example/example_group_proxy.rb +8 -0
- data/lib/spec/example/example_matcher.rb +2 -3
- data/lib/spec/example/example_methods.rb +14 -1
- data/lib/spec/example/example_proxy.rb +3 -4
- data/lib/spec/example/subject.rb +7 -7
- data/lib/spec/interop/test.rb +2 -1
- data/lib/spec/matchers/be_close.rb +5 -5
- data/lib/spec/matchers/be_instance_of.rb +2 -2
- data/lib/spec/matchers/be_kind_of.rb +2 -2
- data/lib/spec/matchers/compatibility.rb +2 -2
- data/lib/spec/matchers/eql.rb +4 -4
- data/lib/spec/matchers/equal.rb +18 -8
- data/lib/spec/matchers/extensions/instance_exec.rb +1 -3
- data/lib/spec/matchers/include.rb +4 -4
- data/lib/spec/matchers/match.rb +2 -2
- data/lib/spec/matchers/operator_matcher.rb +3 -2
- data/lib/spec/mocks/methods.rb +9 -0
- data/lib/spec/mocks/mock.rb +34 -24
- data/lib/spec/mocks/proxy.rb +1 -0
- data/lib/spec/mocks/spec_methods.rb +5 -5
- data/lib/spec/runner.rb +1 -2
- data/lib/spec/runner/configuration.rb +0 -0
- data/lib/spec/runner/drb_command_line.rb +2 -0
- data/lib/spec/runner/formatter/base_text_formatter.rb +1 -1
- data/lib/spec/runner/formatter/no_op_method_missing.rb +1 -1
- data/lib/spec/version.rb +1 -1
- data/spec/spec/example/example_group_proxy_spec.rb +24 -0
- data/spec/spec/example/example_methods_spec.rb +12 -0
- data/spec/spec/example/predicate_matcher_spec.rb +0 -0
- data/spec/spec/example/subject_spec.rb +16 -6
- data/spec/spec/matchers/change_spec.rb +85 -85
- data/spec/spec/matchers/compatibility_spec.rb +16 -22
- data/spec/spec/matchers/equal_spec.rb +33 -9
- data/spec/spec/matchers/have_spec.rb +1 -8
- data/spec/spec/mocks/mock_ordering_spec.rb +10 -0
- data/spec/spec/mocks/mock_spec.rb +106 -93
- data/spec/spec/mocks/stub_chain_spec.rb +27 -0
- data/spec/spec/mocks/stub_spec.rb +9 -5
- data/spec/spec/runner/configuration_spec.rb +0 -0
- data/spec/spec/runner/drb_command_line_spec.rb +1 -1
- data/spec/spec/runner/formatter/html_formatted-1.8.7.html +31 -46
- data/spec/spec/runner/formatter/html_formatted-1.9.1.html +25 -28
- data/spec/spec/runner/formatter/html_formatter_spec.rb +3 -19
- data/spec/spec/runner/formatter/profile_formatter_spec.rb +3 -18
- data/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +4 -28
- data/spec/spec/runner/formatter/text_mate_formatted-1.8.7.html +31 -46
- data/spec/spec/runner/formatter/text_mate_formatted-1.9.1.html +7 -10
- data/spec/spec/runner/reporter_spec.rb +1 -1
- data/spec/spec_helper.rb +4 -0
- data/spec/support/macros.rb +29 -0
- metadata +36 -8
- metadata.gz.sig +1 -0
@@ -0,0 +1,27 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../../spec_helper.rb'
|
2
|
+
|
3
|
+
module Spec
|
4
|
+
module Mocks
|
5
|
+
describe "A chained method stub" do
|
6
|
+
before(:each) do
|
7
|
+
@subject = Object.new
|
8
|
+
end
|
9
|
+
|
10
|
+
it "returns expected value from chaining only one method call" do
|
11
|
+
@subject.stub_chain(:msg1).and_return(:return_value)
|
12
|
+
@subject.msg1.should equal(:return_value)
|
13
|
+
end
|
14
|
+
|
15
|
+
it "returns expected value from chaining two method calls" do
|
16
|
+
@subject.stub_chain(:msg1, :msg2).and_return(:return_value)
|
17
|
+
@subject.msg1.msg2.should equal(:return_value)
|
18
|
+
end
|
19
|
+
|
20
|
+
it "returns expected value from chaining four method calls" do
|
21
|
+
@subject.stub_chain(:msg1, :msg2, :msg3, :msg4).and_return(:return_value)
|
22
|
+
@subject.msg1.msg2.msg3.msg4.should equal(:return_value)
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -16,11 +16,15 @@ module Spec
|
|
16
16
|
@instance = @class.new
|
17
17
|
@stub = Object.new
|
18
18
|
end
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
19
|
+
|
20
|
+
[:stub!, :stub].each do |method|
|
21
|
+
context "using #{method}" do
|
22
|
+
it "should return expected value when expected message is received" do
|
23
|
+
@instance.send(method, :msg).and_return(:return_value)
|
24
|
+
@instance.msg.should equal(:return_value)
|
25
|
+
@instance.rspec_verify
|
26
|
+
end
|
27
|
+
end
|
24
28
|
end
|
25
29
|
|
26
30
|
it "should ignore when expected message is received" do
|
File without changes
|
@@ -192,12 +192,10 @@ a {
|
|
192
192
|
<div class="failure" id="failure_1">
|
193
193
|
<div class="message"><pre>Mock 'poke me' expected :poke with (any args) once, but received it 0 times</pre></div>
|
194
194
|
<div class="backtrace"><pre>./examples/failing/mocking_example.rb:13:
|
195
|
-
/
|
196
|
-
/
|
197
|
-
/
|
198
|
-
/
|
199
|
-
-e:1:in `load'
|
200
|
-
-e:1:</pre></div>
|
195
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/../spec_helper.rb:43:in `run_with'
|
196
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:38:
|
197
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:in `chdir'
|
198
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:</pre></div>
|
201
199
|
<pre class="ruby"><code><span class="linenum">11</span> <span class="ident">it</span> <span class="punct">"</span><span class="string">should fail when expected message not received</span><span class="punct">"</span> <span class="keyword">do</span>
|
202
200
|
<span class="linenum">12</span> <span class="ident">mock</span> <span class="punct">=</span> <span class="ident">mock</span><span class="punct">("</span><span class="string">poke me</span><span class="punct">")</span>
|
203
201
|
<span class="offending"><span class="linenum">13</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">should_receive</span><span class="punct">(</span><span class="symbol">:poke</span><span class="punct">)</span></span>
|
@@ -211,12 +209,10 @@ a {
|
|
211
209
|
<div class="failure" id="failure_2">
|
212
210
|
<div class="message"><pre>Mock 'one two three' received :three out of order</pre></div>
|
213
211
|
<div class="backtrace"><pre>./examples/failing/mocking_example.rb:22:
|
214
|
-
/
|
215
|
-
/
|
216
|
-
/
|
217
|
-
/
|
218
|
-
-e:1:in `load'
|
219
|
-
-e:1:</pre></div>
|
212
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/../spec_helper.rb:43:in `run_with'
|
213
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:38:
|
214
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:in `chdir'
|
215
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:</pre></div>
|
220
216
|
<pre class="ruby"><code><span class="linenum">20</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">should_receive</span><span class="punct">(</span><span class="symbol">:three</span><span class="punct">).</span><span class="ident">ordered</span>
|
221
217
|
<span class="linenum">21</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">one</span>
|
222
218
|
<span class="offending"><span class="linenum">22</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">three</span></span>
|
@@ -230,12 +226,10 @@ a {
|
|
230
226
|
<div class="failure" id="failure_3">
|
231
227
|
<div class="message"><pre>Mock 'don't talk to me' expected :any_message_at_all with (no args) 0 times, but received it once</pre></div>
|
232
228
|
<div class="backtrace"><pre>./examples/failing/mocking_example.rb:29:
|
233
|
-
/
|
234
|
-
/
|
235
|
-
/
|
236
|
-
/
|
237
|
-
-e:1:in `load'
|
238
|
-
-e:1:</pre></div>
|
229
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/../spec_helper.rb:43:in `run_with'
|
230
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:38:
|
231
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:in `chdir'
|
232
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:</pre></div>
|
239
233
|
<pre class="ruby"><code><span class="linenum">27</span> <span class="ident">mock</span> <span class="punct">=</span> <span class="ident">mock</span><span class="punct">("</span><span class="string">don't talk to me</span><span class="punct">")</span>
|
240
234
|
<span class="linenum">28</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">should_not_receive</span><span class="punct">(</span><span class="symbol">:any_message_at_all</span><span class="punct">)</span>
|
241
235
|
<span class="offending"><span class="linenum">29</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">any_message_at_all</span></span>
|
@@ -248,12 +242,10 @@ a {
|
|
248
242
|
<div class="failure" id="failure_4">
|
249
243
|
<div class="message"><pre>Expected pending 'here is the bug' to fail. No Error was raised.</pre></div>
|
250
244
|
<div class="backtrace"><pre>./examples/failing/mocking_example.rb:33:
|
251
|
-
/
|
252
|
-
/
|
253
|
-
/
|
254
|
-
/
|
255
|
-
-e:1:in `load'
|
256
|
-
-e:1:</pre></div>
|
245
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/../spec_helper.rb:43:in `run_with'
|
246
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:38:
|
247
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:in `chdir'
|
248
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:</pre></div>
|
257
249
|
<pre class="ruby"><code><span class="linenum">31</span>
|
258
250
|
<span class="linenum">32</span> <span class="ident">it</span> <span class="punct">"</span><span class="string">has a bug we need to fix</span><span class="punct">"</span> <span class="keyword">do</span>
|
259
251
|
<span class="offending"><span class="linenum">33</span> <span class="ident">pending</span> <span class="punct">"</span><span class="string">here is the bug</span><span class="punct">"</span> <span class="keyword">do</span></span>
|
@@ -281,12 +273,10 @@ Diff:
|
|
281
273
|
framework for Ruby
|
282
274
|
</pre></div>
|
283
275
|
<div class="backtrace"><pre>./examples/failing/diffing_spec.rb:13:
|
284
|
-
/
|
285
|
-
/
|
286
|
-
/
|
287
|
-
/
|
288
|
-
-e:1:in `load'
|
289
|
-
-e:1:</pre></div>
|
276
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/../spec_helper.rb:43:in `run_with'
|
277
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:38:
|
278
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:in `chdir'
|
279
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:</pre></div>
|
290
280
|
<pre class="ruby"><code><span class="linenum">11</span><span class="ident">framework</span> <span class="keyword">for</span> <span class="constant">Ruby</span>
|
291
281
|
<span class="linenum">12</span><span class="constant">EOF</span>
|
292
282
|
<span class="offending"><span class="linenum">13</span> <span class="ident">usa</span><span class="punct">.</span><span class="ident">should</span> <span class="punct">==</span> <span class="ident">uk</span></span>
|
@@ -297,30 +287,25 @@ Diff:
|
|
297
287
|
<dd class="spec failed">
|
298
288
|
<span class="failed_spec_name">should print diff of different objects' pretty representation</span>
|
299
289
|
<div class="failure" id="failure_6">
|
300
|
-
<div class="message"><pre>
|
290
|
+
<div class="message"><pre>
|
291
|
+
expected <Animal
|
301
292
|
name=bob,
|
302
293
|
species=tortoise
|
303
294
|
>
|
304
|
-
|
295
|
+
|
296
|
+
got <Animal
|
305
297
|
name=bob,
|
306
298
|
species=giraffe
|
307
299
|
>
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
<Animal
|
312
|
-
name=bob,
|
313
|
-
-species=tortoise
|
314
|
-
+species=giraffe
|
315
|
-
>
|
300
|
+
|
301
|
+
|
302
|
+
(compared using eql?)
|
316
303
|
</pre></div>
|
317
304
|
<div class="backtrace"><pre>./examples/failing/diffing_spec.rb:34:
|
318
|
-
/
|
319
|
-
/
|
320
|
-
/
|
321
|
-
/
|
322
|
-
-e:1:in `load'
|
323
|
-
-e:1:</pre></div>
|
305
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/../spec_helper.rb:43:in `run_with'
|
306
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:38:
|
307
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:in `chdir'
|
308
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:</pre></div>
|
324
309
|
<pre class="ruby"><code><span class="linenum">32</span> <span class="ident">expected</span> <span class="punct">=</span> <span class="constant">Animal</span><span class="punct">.</span><span class="ident">new</span> <span class="punct">"</span><span class="string">bob</span><span class="punct">",</span> <span class="punct">"</span><span class="string">giraffe</span><span class="punct">"</span>
|
325
310
|
<span class="linenum">33</span> <span class="ident">actual</span> <span class="punct">=</span> <span class="constant">Animal</span><span class="punct">.</span><span class="ident">new</span> <span class="punct">"</span><span class="string">bob</span><span class="punct">",</span> <span class="punct">"</span><span class="string">tortoise</span><span class="punct">"</span>
|
326
311
|
<span class="offending"><span class="linenum">34</span> <span class="ident">expected</span><span class="punct">.</span><span class="ident">should</span> <span class="ident">eql</span><span class="punct">(</span><span class="ident">actual</span><span class="punct">)</span></span>
|
@@ -193,9 +193,9 @@ a {
|
|
193
193
|
<div class="message"><pre>Mock 'poke me' expected :poke with (any args) once, but received it 0 times</pre></div>
|
194
194
|
<div class="backtrace"><pre>/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb:13:in `block (2 levels) in <top (required)>'
|
195
195
|
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/../spec_helper.rb:43:in `run_with'
|
196
|
-
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:
|
197
|
-
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:
|
198
|
-
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:
|
196
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:38:in `block (4 levels) in <module:Formatter>'
|
197
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:in `chdir'
|
198
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:in `block (3 levels) in <module:Formatter>'</pre></div>
|
199
199
|
<pre class="ruby"><code><span class="linenum">11</span> it "should fail when expected message not received" do
|
200
200
|
<span class="linenum">12</span> mock = mock("poke me")
|
201
201
|
<span class="offending"><span class="linenum">13</span> mock.should_receive(:poke)</span>
|
@@ -211,9 +211,9 @@ a {
|
|
211
211
|
<div class="message"><pre>Mock 'one two three' received :three out of order</pre></div>
|
212
212
|
<div class="backtrace"><pre>/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb:22:in `block (2 levels) in <top (required)>'
|
213
213
|
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/../spec_helper.rb:43:in `run_with'
|
214
|
-
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:
|
215
|
-
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:
|
216
|
-
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:
|
214
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:38:in `block (4 levels) in <module:Formatter>'
|
215
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:in `chdir'
|
216
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:in `block (3 levels) in <module:Formatter>'</pre></div>
|
217
217
|
<pre class="ruby"><code><span class="linenum">20</span> mock.should_receive(:three).ordered
|
218
218
|
<span class="linenum">21</span> mock.one
|
219
219
|
<span class="offending"><span class="linenum">22</span> mock.three</span>
|
@@ -229,9 +229,9 @@ a {
|
|
229
229
|
<div class="message"><pre>Mock 'don't talk to me' expected :any_message_at_all with (no args) 0 times, but received it once</pre></div>
|
230
230
|
<div class="backtrace"><pre>/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb:29:in `block (2 levels) in <top (required)>'
|
231
231
|
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/../spec_helper.rb:43:in `run_with'
|
232
|
-
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:
|
233
|
-
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:
|
234
|
-
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:
|
232
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:38:in `block (4 levels) in <module:Formatter>'
|
233
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:in `chdir'
|
234
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:in `block (3 levels) in <module:Formatter>'</pre></div>
|
235
235
|
<pre class="ruby"><code><span class="linenum">27</span> mock = mock("don't talk to me")
|
236
236
|
<span class="linenum">28</span> mock.should_not_receive(:any_message_at_all)
|
237
237
|
<span class="offending"><span class="linenum">29</span> mock.any_message_at_all</span>
|
@@ -247,9 +247,9 @@ a {
|
|
247
247
|
<div class="message"><pre>Expected pending 'here is the bug' to fail. No Error was raised.</pre></div>
|
248
248
|
<div class="backtrace"><pre>/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb:33:in `block (2 levels) in <top (required)>'
|
249
249
|
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/../spec_helper.rb:43:in `run_with'
|
250
|
-
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:
|
251
|
-
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:
|
252
|
-
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:
|
250
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:38:in `block (4 levels) in <module:Formatter>'
|
251
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:in `chdir'
|
252
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:in `block (3 levels) in <module:Formatter>'</pre></div>
|
253
253
|
<pre class="ruby"><code><span class="linenum">31</span>
|
254
254
|
<span class="linenum">32</span> it "has a bug we need to fix" do
|
255
255
|
<span class="offending"><span class="linenum">33</span> pending "here is the bug" do</span>
|
@@ -279,9 +279,9 @@ Diff:
|
|
279
279
|
</pre></div>
|
280
280
|
<div class="backtrace"><pre>/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/diffing_spec.rb:13:in `block (2 levels) in <top (required)>'
|
281
281
|
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/../spec_helper.rb:43:in `run_with'
|
282
|
-
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:
|
283
|
-
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:
|
284
|
-
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:
|
282
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:38:in `block (4 levels) in <module:Formatter>'
|
283
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:in `chdir'
|
284
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:in `block (3 levels) in <module:Formatter>'</pre></div>
|
285
285
|
<pre class="ruby"><code><span class="linenum">11</span>framework for Ruby
|
286
286
|
<span class="linenum">12</span>EOF
|
287
287
|
<span class="offending"><span class="linenum">13</span> usa.should == uk</span>
|
@@ -294,28 +294,25 @@ Diff:
|
|
294
294
|
<dd class="spec failed">
|
295
295
|
<span class="failed_spec_name">should print diff of different objects' pretty representation</span>
|
296
296
|
<div class="failure" id="failure_6">
|
297
|
-
<div class="message"><pre>
|
297
|
+
<div class="message"><pre>
|
298
|
+
expected <Animal
|
298
299
|
name=bob,
|
299
300
|
species=tortoise
|
300
301
|
>
|
301
|
-
|
302
|
+
|
303
|
+
got <Animal
|
302
304
|
name=bob,
|
303
305
|
species=giraffe
|
304
306
|
>
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
<Animal
|
309
|
-
name=bob,
|
310
|
-
-species=tortoise
|
311
|
-
+species=giraffe
|
312
|
-
>
|
307
|
+
|
308
|
+
|
309
|
+
(compared using eql?)
|
313
310
|
</pre></div>
|
314
311
|
<div class="backtrace"><pre>/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/diffing_spec.rb:34:in `block (2 levels) in <top (required)>'
|
315
312
|
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/../spec_helper.rb:43:in `run_with'
|
316
|
-
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:
|
317
|
-
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:
|
318
|
-
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:
|
313
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:38:in `block (4 levels) in <module:Formatter>'
|
314
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:in `chdir'
|
315
|
+
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:in `block (3 levels) in <module:Formatter>'</pre></div>
|
319
316
|
<pre class="ruby"><code><span class="linenum">32</span> expected = Animal.new "bob", "giraffe"
|
320
317
|
<span class="linenum">33</span> actual = Animal.new "bob", "tortoise"
|
321
318
|
<span class="offending"><span class="linenum">34</span> expected.should eql(actual)</span>
|
@@ -9,6 +9,9 @@ module Spec
|
|
9
9
|
module Runner
|
10
10
|
module Formatter
|
11
11
|
describe HtmlFormatter do
|
12
|
+
|
13
|
+
treats_method_missing_as_private
|
14
|
+
|
12
15
|
attr_reader :root, :expected_file, :expected_html
|
13
16
|
|
14
17
|
before do
|
@@ -105,25 +108,6 @@ module Spec
|
|
105
108
|
html.should =~ /This was a dry-run/m
|
106
109
|
end
|
107
110
|
end
|
108
|
-
|
109
|
-
it "should have method_missing as private" do
|
110
|
-
HtmlFormatter.private_instance_methods.should include("method_missing")
|
111
|
-
end
|
112
|
-
|
113
|
-
it "should respond_to? all messages" do
|
114
|
-
formatter = HtmlFormatter.new({ }, StringIO.new)
|
115
|
-
formatter.should respond_to(:just_about_anything)
|
116
|
-
end
|
117
|
-
|
118
|
-
it "should respond_to? anything, when given the private flag" do
|
119
|
-
formatter = HtmlFormatter.new({ }, StringIO.new)
|
120
|
-
formatter.respond_to?(:method_missing, true).should be_true
|
121
|
-
end
|
122
|
-
|
123
|
-
it "should not respond_to? method_missing (because it's private)" do
|
124
|
-
formatter = HtmlFormatter.new({ }, StringIO.new)
|
125
|
-
formatter.respond_to?(:method_missing).should be_false
|
126
|
-
end
|
127
111
|
end
|
128
112
|
end
|
129
113
|
end
|
@@ -5,6 +5,9 @@ module Spec
|
|
5
5
|
module Runner
|
6
6
|
module Formatter
|
7
7
|
describe ProfileFormatter do
|
8
|
+
|
9
|
+
treats_method_missing_as_private
|
10
|
+
|
8
11
|
attr_reader :io, :formatter
|
9
12
|
before(:each) do
|
10
13
|
@io = StringIO.new
|
@@ -61,24 +64,6 @@ module Spec
|
|
61
64
|
formatter.start_dump
|
62
65
|
end
|
63
66
|
|
64
|
-
it "should have method_missing as private" do
|
65
|
-
ProfileFormatter.private_instance_methods.should include("method_missing")
|
66
|
-
end
|
67
|
-
|
68
|
-
it "should respond_to? all messages" do
|
69
|
-
formatter = ProfileFormatter.new({ }, StringIO.new)
|
70
|
-
formatter.should respond_to(:just_about_anything)
|
71
|
-
end
|
72
|
-
|
73
|
-
it "should respond_to? anything, when given the private flag" do
|
74
|
-
formatter = ProfileFormatter.new({ }, StringIO.new)
|
75
|
-
formatter.respond_to?(:method_missing, true).should be_true
|
76
|
-
end
|
77
|
-
|
78
|
-
it "should not respond_to? method_missing (because it's private)" do
|
79
|
-
formatter = ProfileFormatter.new({ }, StringIO.new)
|
80
|
-
formatter.respond_to?(:method_missing).should be_false
|
81
|
-
end
|
82
67
|
end
|
83
68
|
end
|
84
69
|
end
|
@@ -5,6 +5,9 @@ module Spec
|
|
5
5
|
module Runner
|
6
6
|
module Formatter
|
7
7
|
describe ProgressBarFormatter do
|
8
|
+
|
9
|
+
treats_method_missing_as_private
|
10
|
+
|
8
11
|
before(:each) do
|
9
12
|
@io = StringIO.new
|
10
13
|
@options = mock('options')
|
@@ -101,13 +104,7 @@ EOE
|
|
101
104
|
@formatter.example_group_started(Spec::Example::ExampleGroupProxy.new(example_group))
|
102
105
|
@formatter.example_pending(example, "message", "#{__FILE__}:#{__LINE__}")
|
103
106
|
@formatter.dump_pending
|
104
|
-
@io.string.should
|
105
|
-
*
|
106
|
-
Pending:
|
107
|
-
|
108
|
-
example_group example (message)
|
109
|
-
#{file}:#{line}
|
110
|
-
HERE
|
107
|
+
@io.string.should =~ /Pending:\n\nexample_group example \(message\)\n#{file}:#{line}/m
|
111
108
|
end
|
112
109
|
end
|
113
110
|
|
@@ -143,27 +140,6 @@ HERE
|
|
143
140
|
@io.string.should eql("")
|
144
141
|
end
|
145
142
|
end
|
146
|
-
|
147
|
-
describe ProgressBarFormatter, "method_missing" do
|
148
|
-
it "should have method_missing as private" do
|
149
|
-
ProgressBarFormatter.private_instance_methods.should include("method_missing")
|
150
|
-
end
|
151
|
-
|
152
|
-
it "should respond_to? all messages" do
|
153
|
-
formatter = ProgressBarFormatter.new({ }, StringIO.new)
|
154
|
-
formatter.should respond_to(:just_about_anything)
|
155
|
-
end
|
156
|
-
|
157
|
-
it "should respond_to? anything, when given the private flag" do
|
158
|
-
formatter = ProgressBarFormatter.new({ }, StringIO.new)
|
159
|
-
formatter.respond_to?(:method_missing, true).should be_true
|
160
|
-
end
|
161
|
-
|
162
|
-
it "should not respond_to? method_missing (because it's private)" do
|
163
|
-
formatter = ProgressBarFormatter.new({ }, StringIO.new)
|
164
|
-
formatter.respond_to?(:method_missing).should be_false
|
165
|
-
end
|
166
|
-
end
|
167
143
|
end
|
168
144
|
end
|
169
145
|
end
|
@@ -191,12 +191,10 @@ a {
|
|
191
191
|
<span class="failed_spec_name">should fail when expected message not received</span>
|
192
192
|
<div class="failure" id="failure_1">
|
193
193
|
<div class="message"><pre>Mock 'poke me' expected :poke with (any args) once, but received it 0 times</pre></div>
|
194
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file:///
|
195
|
-
<a href="txmt://open?url=file:///
|
196
|
-
<a href="txmt://open?url=file:///
|
197
|
-
<a href="txmt://open?url=file:///
|
198
|
-
-e:1:in `load'
|
199
|
-
-e:1</pre></div>
|
194
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb&line=13">./examples/failing/mocking_example.rb:13</a>
|
195
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
196
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
197
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
200
198
|
<pre class="ruby"><code><span class="linenum">11</span> <span class="ident">it</span> <span class="punct">"</span><span class="string">should fail when expected message not received</span><span class="punct">"</span> <span class="keyword">do</span>
|
201
199
|
<span class="linenum">12</span> <span class="ident">mock</span> <span class="punct">=</span> <span class="ident">mock</span><span class="punct">("</span><span class="string">poke me</span><span class="punct">")</span>
|
202
200
|
<span class="offending"><span class="linenum">13</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">should_receive</span><span class="punct">(</span><span class="symbol">:poke</span><span class="punct">)</span></span>
|
@@ -209,12 +207,10 @@ a {
|
|
209
207
|
<span class="failed_spec_name">should fail when messages are received out of order</span>
|
210
208
|
<div class="failure" id="failure_2">
|
211
209
|
<div class="message"><pre>Mock 'one two three' received :three out of order</pre></div>
|
212
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file:///
|
213
|
-
<a href="txmt://open?url=file:///
|
214
|
-
<a href="txmt://open?url=file:///
|
215
|
-
<a href="txmt://open?url=file:///
|
216
|
-
-e:1:in `load'
|
217
|
-
-e:1</pre></div>
|
210
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb&line=22">./examples/failing/mocking_example.rb:22</a>
|
211
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
212
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
213
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
218
214
|
<pre class="ruby"><code><span class="linenum">20</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">should_receive</span><span class="punct">(</span><span class="symbol">:three</span><span class="punct">).</span><span class="ident">ordered</span>
|
219
215
|
<span class="linenum">21</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">one</span>
|
220
216
|
<span class="offending"><span class="linenum">22</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">three</span></span>
|
@@ -227,12 +223,10 @@ a {
|
|
227
223
|
<span class="failed_spec_name">should get yelled at when sending unexpected messages</span>
|
228
224
|
<div class="failure" id="failure_3">
|
229
225
|
<div class="message"><pre>Mock 'don't talk to me' expected :any_message_at_all with (no args) 0 times, but received it once</pre></div>
|
230
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file:///
|
231
|
-
<a href="txmt://open?url=file:///
|
232
|
-
<a href="txmt://open?url=file:///
|
233
|
-
<a href="txmt://open?url=file:///
|
234
|
-
-e:1:in `load'
|
235
|
-
-e:1</pre></div>
|
226
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb&line=29">./examples/failing/mocking_example.rb:29</a>
|
227
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
228
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
229
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
236
230
|
<pre class="ruby"><code><span class="linenum">27</span> <span class="ident">mock</span> <span class="punct">=</span> <span class="ident">mock</span><span class="punct">("</span><span class="string">don't talk to me</span><span class="punct">")</span>
|
237
231
|
<span class="linenum">28</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">should_not_receive</span><span class="punct">(</span><span class="symbol">:any_message_at_all</span><span class="punct">)</span>
|
238
232
|
<span class="offending"><span class="linenum">29</span> <span class="ident">mock</span><span class="punct">.</span><span class="ident">any_message_at_all</span></span>
|
@@ -244,12 +238,10 @@ a {
|
|
244
238
|
<span class="failed_spec_name">has a bug we need to fix</span>
|
245
239
|
<div class="failure" id="failure_4">
|
246
240
|
<div class="message"><pre>Expected pending 'here is the bug' to fail. No Error was raised.</pre></div>
|
247
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file:///
|
248
|
-
<a href="txmt://open?url=file:///
|
249
|
-
<a href="txmt://open?url=file:///
|
250
|
-
<a href="txmt://open?url=file:///
|
251
|
-
-e:1:in `load'
|
252
|
-
-e:1</pre></div>
|
241
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb&line=33">./examples/failing/mocking_example.rb:33</a>
|
242
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
243
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
244
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
253
245
|
<pre class="ruby"><code><span class="linenum">31</span>
|
254
246
|
<span class="linenum">32</span> <span class="ident">it</span> <span class="punct">"</span><span class="string">has a bug we need to fix</span><span class="punct">"</span> <span class="keyword">do</span>
|
255
247
|
<span class="offending"><span class="linenum">33</span> <span class="ident">pending</span> <span class="punct">"</span><span class="string">here is the bug</span><span class="punct">"</span> <span class="keyword">do</span></span>
|
@@ -276,12 +268,10 @@ Diff:
|
|
276
268
|
+behavior driven development
|
277
269
|
framework for Ruby
|
278
270
|
</pre></div>
|
279
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file:///
|
280
|
-
<a href="txmt://open?url=file:///
|
281
|
-
<a href="txmt://open?url=file:///
|
282
|
-
<a href="txmt://open?url=file:///
|
283
|
-
-e:1:in `load'
|
284
|
-
-e:1</pre></div>
|
271
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/diffing_spec.rb&line=13">./examples/failing/diffing_spec.rb:13</a>
|
272
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
273
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
274
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
285
275
|
<pre class="ruby"><code><span class="linenum">11</span><span class="ident">framework</span> <span class="keyword">for</span> <span class="constant">Ruby</span>
|
286
276
|
<span class="linenum">12</span><span class="constant">EOF</span>
|
287
277
|
<span class="offending"><span class="linenum">13</span> <span class="ident">usa</span><span class="punct">.</span><span class="ident">should</span> <span class="punct">==</span> <span class="ident">uk</span></span>
|
@@ -292,29 +282,24 @@ Diff:
|
|
292
282
|
<dd class="spec failed">
|
293
283
|
<span class="failed_spec_name">should print diff of different objects' pretty representation</span>
|
294
284
|
<div class="failure" id="failure_6">
|
295
|
-
<div class="message"><pre>
|
285
|
+
<div class="message"><pre>
|
286
|
+
expected <Animal
|
296
287
|
name=bob,
|
297
288
|
species=tortoise
|
298
289
|
>
|
299
|
-
|
290
|
+
|
291
|
+
got <Animal
|
300
292
|
name=bob,
|
301
293
|
species=giraffe
|
302
294
|
>
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
<Animal
|
307
|
-
name=bob,
|
308
|
-
-species=tortoise
|
309
|
-
+species=giraffe
|
310
|
-
>
|
295
|
+
|
296
|
+
|
297
|
+
(compared using eql?)
|
311
298
|
</pre></div>
|
312
|
-
<div class="backtrace"><pre><a href="txmt://open?url=file:///
|
313
|
-
<a href="txmt://open?url=file:///
|
314
|
-
<a href="txmt://open?url=file:///
|
315
|
-
<a href="txmt://open?url=file:///
|
316
|
-
-e:1:in `load'
|
317
|
-
-e:1</pre></div>
|
299
|
+
<div class="backtrace"><pre><a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/diffing_spec.rb&line=34">./examples/failing/diffing_spec.rb:34</a>
|
300
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=49">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:49</a>
|
301
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> :in `chdir'
|
302
|
+
<a href="txmt://open?url=file:///Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=45">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:45</a> </pre></div>
|
318
303
|
<pre class="ruby"><code><span class="linenum">32</span> <span class="ident">expected</span> <span class="punct">=</span> <span class="constant">Animal</span><span class="punct">.</span><span class="ident">new</span> <span class="punct">"</span><span class="string">bob</span><span class="punct">",</span> <span class="punct">"</span><span class="string">giraffe</span><span class="punct">"</span>
|
319
304
|
<span class="linenum">33</span> <span class="ident">actual</span> <span class="punct">=</span> <span class="constant">Animal</span><span class="punct">.</span><span class="ident">new</span> <span class="punct">"</span><span class="string">bob</span><span class="punct">",</span> <span class="punct">"</span><span class="string">tortoise</span><span class="punct">"</span>
|
320
305
|
<span class="offending"><span class="linenum">34</span> <span class="ident">expected</span><span class="punct">.</span><span class="ident">should</span> <span class="ident">eql</span><span class="punct">(</span><span class="ident">actual</span><span class="punct">)</span></span>
|