rspec 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data.tar.gz.sig +0 -0
  2. data/History.rdoc +59 -32
  3. data/Manifest.txt +6 -0
  4. data/Rakefile +2 -2
  5. data/examples/passing/options_example.rb +31 -0
  6. data/examples/passing/options_formatter.rb +20 -0
  7. data/features/expectations/expect_change.feature +65 -0
  8. data/features/expectations/expect_error.feature +44 -0
  9. data/lib/spec/example/example_group_factory.rb +4 -2
  10. data/lib/spec/example/example_group_methods.rb +5 -1
  11. data/lib/spec/example/example_group_proxy.rb +8 -0
  12. data/lib/spec/example/example_matcher.rb +2 -3
  13. data/lib/spec/example/example_methods.rb +14 -1
  14. data/lib/spec/example/example_proxy.rb +3 -4
  15. data/lib/spec/example/subject.rb +7 -7
  16. data/lib/spec/interop/test.rb +2 -1
  17. data/lib/spec/matchers/be_close.rb +5 -5
  18. data/lib/spec/matchers/be_instance_of.rb +2 -2
  19. data/lib/spec/matchers/be_kind_of.rb +2 -2
  20. data/lib/spec/matchers/compatibility.rb +2 -2
  21. data/lib/spec/matchers/eql.rb +4 -4
  22. data/lib/spec/matchers/equal.rb +18 -8
  23. data/lib/spec/matchers/extensions/instance_exec.rb +1 -3
  24. data/lib/spec/matchers/include.rb +4 -4
  25. data/lib/spec/matchers/match.rb +2 -2
  26. data/lib/spec/matchers/operator_matcher.rb +3 -2
  27. data/lib/spec/mocks/methods.rb +9 -0
  28. data/lib/spec/mocks/mock.rb +34 -24
  29. data/lib/spec/mocks/proxy.rb +1 -0
  30. data/lib/spec/mocks/spec_methods.rb +5 -5
  31. data/lib/spec/runner.rb +1 -2
  32. data/lib/spec/runner/configuration.rb +0 -0
  33. data/lib/spec/runner/drb_command_line.rb +2 -0
  34. data/lib/spec/runner/formatter/base_text_formatter.rb +1 -1
  35. data/lib/spec/runner/formatter/no_op_method_missing.rb +1 -1
  36. data/lib/spec/version.rb +1 -1
  37. data/spec/spec/example/example_group_proxy_spec.rb +24 -0
  38. data/spec/spec/example/example_methods_spec.rb +12 -0
  39. data/spec/spec/example/predicate_matcher_spec.rb +0 -0
  40. data/spec/spec/example/subject_spec.rb +16 -6
  41. data/spec/spec/matchers/change_spec.rb +85 -85
  42. data/spec/spec/matchers/compatibility_spec.rb +16 -22
  43. data/spec/spec/matchers/equal_spec.rb +33 -9
  44. data/spec/spec/matchers/have_spec.rb +1 -8
  45. data/spec/spec/mocks/mock_ordering_spec.rb +10 -0
  46. data/spec/spec/mocks/mock_spec.rb +106 -93
  47. data/spec/spec/mocks/stub_chain_spec.rb +27 -0
  48. data/spec/spec/mocks/stub_spec.rb +9 -5
  49. data/spec/spec/runner/configuration_spec.rb +0 -0
  50. data/spec/spec/runner/drb_command_line_spec.rb +1 -1
  51. data/spec/spec/runner/formatter/html_formatted-1.8.7.html +31 -46
  52. data/spec/spec/runner/formatter/html_formatted-1.9.1.html +25 -28
  53. data/spec/spec/runner/formatter/html_formatter_spec.rb +3 -19
  54. data/spec/spec/runner/formatter/profile_formatter_spec.rb +3 -18
  55. data/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +4 -28
  56. data/spec/spec/runner/formatter/text_mate_formatted-1.8.7.html +31 -46
  57. data/spec/spec/runner/formatter/text_mate_formatted-1.9.1.html +7 -10
  58. data/spec/spec/runner/reporter_spec.rb +1 -1
  59. data/spec/spec_helper.rb +4 -0
  60. data/spec/support/macros.rb +29 -0
  61. metadata +36 -8
  62. 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
- it "should return expected value when expected message is received" do
21
- @instance.stub!(:msg).and_return(:return_value)
22
- @instance.msg.should equal(:return_value)
23
- @instance.rspec_verify
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
@@ -17,7 +17,7 @@ module Spec
17
17
  it "returns nil" do
18
18
  err = out = StringIO.new
19
19
  result = DrbCommandLine.run(OptionParser.parse(['--version'], err, out))
20
- result.should be_nil
20
+ result.should be_false
21
21
  end
22
22
  end
23
23
 
@@ -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
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/../../../spec_helper.rb:43:in `run_with'
196
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:
197
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:22:in `chdir'
198
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:22:
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">&quot;</span><span class="string">should fail when expected message not received</span><span class="punct">&quot;</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">(&quot;</span><span class="string">poke me</span><span class="punct">&quot;)</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
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/../../../spec_helper.rb:43:in `run_with'
215
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:
216
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:22:in `chdir'
217
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:22:
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
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/../../../spec_helper.rb:43:in `run_with'
234
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:
235
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:22:in `chdir'
236
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:22:
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">(&quot;</span><span class="string">don't talk to me</span><span class="punct">&quot;)</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
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/../../../spec_helper.rb:43:in `run_with'
252
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:
253
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:22:in `chdir'
254
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:22:
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">&quot;</span><span class="string">has a bug we need to fix</span><span class="punct">&quot;</span> <span class="keyword">do</span>
259
251
  <span class="offending"><span class="linenum">33</span> <span class="ident">pending</span> <span class="punct">&quot;</span><span class="string">here is the bug</span><span class="punct">&quot;</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
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/../../../spec_helper.rb:43:in `run_with'
285
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:
286
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:22:in `chdir'
287
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:22:
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>expected &lt;Animal
290
+ <div class="message"><pre>
291
+ expected &lt;Animal
301
292
  name=bob,
302
293
  species=tortoise
303
294
  &gt;
304
- , got &lt;Animal
295
+
296
+ got &lt;Animal
305
297
  name=bob,
306
298
  species=giraffe
307
299
  &gt;
308
- (using .eql?)
309
- Diff:
310
- @@ -1,5 +1,5 @@
311
- &lt;Animal
312
- name=bob,
313
- -species=tortoise
314
- +species=giraffe
315
- &gt;
300
+
301
+
302
+ (compared using eql?)
316
303
  </pre></div>
317
304
  <div class="backtrace"><pre>./examples/failing/diffing_spec.rb:34:
318
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/../../../spec_helper.rb:43:in `run_with'
319
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:26:
320
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:22:in `chdir'
321
- /home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:22:
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">&quot;</span><span class="string">bob</span><span class="punct">&quot;,</span> <span class="punct">&quot;</span><span class="string">giraffe</span><span class="punct">&quot;</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">&quot;</span><span class="string">bob</span><span class="punct">&quot;,</span> <span class="punct">&quot;</span><span class="string">tortoise</span><span class="punct">&quot;</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:37: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:25:in `chdir'
198
- /Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:25:in `block (3 levels) in <module:Formatter>'</pre></div>
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:37: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:25:in `chdir'
216
- /Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:25:in `block (3 levels) in <module:Formatter>'</pre></div>
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:37: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:25:in `chdir'
234
- /Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:25:in `block (3 levels) in <module:Formatter>'</pre></div>
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:37: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:25:in `chdir'
252
- /Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:25:in `block (3 levels) in <module:Formatter>'</pre></div>
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:37: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:25:in `chdir'
284
- /Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:25:in `block (3 levels) in <module:Formatter>'</pre></div>
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>expected &lt;Animal
297
+ <div class="message"><pre>
298
+ expected &lt;Animal
298
299
  name=bob,
299
300
  species=tortoise
300
301
  &gt;
301
- , got &lt;Animal
302
+
303
+ got &lt;Animal
302
304
  name=bob,
303
305
  species=giraffe
304
306
  &gt;
305
- (using .eql?)
306
- Diff:
307
- @@ -1,5 +1,5 @@
308
- &lt;Animal
309
- name=bob,
310
- -species=tortoise
311
- +species=giraffe
312
- &gt;
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:37:in `block (4 levels) in <module:Formatter>'
317
- /Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:25:in `chdir'
318
- /Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:25:in `block (3 levels) in <module:Formatter>'</pre></div>
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 ==(<<-HERE)
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:///home/btakita/workspace/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:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=51">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:51</a>
196
- <a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> :in `chdir'
197
- <a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a>
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">&quot;</span><span class="string">should fail when expected message not received</span><span class="punct">&quot;</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">(&quot;</span><span class="string">poke me</span><span class="punct">&quot;)</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:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb&line=22">./examples/failing/mocking_example.rb:22</a>
213
- <a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=51">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:51</a>
214
- <a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> :in `chdir'
215
- <a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a>
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:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb&line=29">./examples/failing/mocking_example.rb:29</a>
231
- <a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=51">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:51</a>
232
- <a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> :in `chdir'
233
- <a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a>
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">(&quot;</span><span class="string">don't talk to me</span><span class="punct">&quot;)</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:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb&line=33">./examples/failing/mocking_example.rb:33</a>
248
- <a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=51">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:51</a>
249
- <a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> :in `chdir'
250
- <a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a>
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">&quot;</span><span class="string">has a bug we need to fix</span><span class="punct">&quot;</span> <span class="keyword">do</span>
255
247
  <span class="offending"><span class="linenum">33</span> <span class="ident">pending</span> <span class="punct">&quot;</span><span class="string">here is the bug</span><span class="punct">&quot;</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:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/diffing_spec.rb&line=13">./examples/failing/diffing_spec.rb:13</a>
280
- <a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=51">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:51</a>
281
- <a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> :in `chdir'
282
- <a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a>
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>expected &lt;Animal
285
+ <div class="message"><pre>
286
+ expected &lt;Animal
296
287
  name=bob,
297
288
  species=tortoise
298
289
  &gt;
299
- , got &lt;Animal
290
+
291
+ got &lt;Animal
300
292
  name=bob,
301
293
  species=giraffe
302
294
  &gt;
303
- (using .eql?)
304
- Diff:
305
- @@ -1,5 +1,5 @@
306
- &lt;Animal
307
- name=bob,
308
- -species=tortoise
309
- +species=giraffe
310
- &gt;
295
+
296
+
297
+ (compared using eql?)
311
298
  </pre></div>
312
- <div class="backtrace"><pre><a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/diffing_spec.rb&line=34">./examples/failing/diffing_spec.rb:34</a>
313
- <a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=51">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:51</a>
314
- <a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a> :in `chdir'
315
- <a href="txmt://open?url=file:///home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb&line=47">/home/btakita/workspace/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/text_mate_formatter_spec.rb:47</a>
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">&quot;</span><span class="string">bob</span><span class="punct">&quot;,</span> <span class="punct">&quot;</span><span class="string">giraffe</span><span class="punct">&quot;</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">&quot;</span><span class="string">bob</span><span class="punct">&quot;,</span> <span class="punct">&quot;</span><span class="string">tortoise</span><span class="punct">&quot;</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>