Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't insert a name if none is supplied to double(), mock(), or stub()

  • Loading branch information...
commit 9a8f902a16b6b32616bf49cac65462a3e606e47d 1 parent e7188aa
@dchelimsky authored
View
12 lib/spec/mocks/error_generator.rb
@@ -46,7 +46,17 @@ def raise_wrong_arity_error(args_to_yield, arity)
private
def intro
- @name ? "#{@declared_as} '#{@name}'" : @target.class == Class ? "<#{@target.inspect} (class)>" : (@target.nil? ? "nil" : @target)
+ if @name
+ "#{@declared_as} #{@name.inspect}"
+ elsif Mock === @target
+ @declared_as
+ elsif Class === @target
+ "<#{@target.inspect} (class)>"
+ elsif @target
+ @target
+ else
+ "nil"
+ end
end
def __raise(message)
View
9 lib/spec/mocks/mock.rb
@@ -7,10 +7,10 @@ class Mock
# only) == Options:
# * <tt>:null_object</tt> - if true, the mock object acts as a forgiving
# null object allowing any message to be sent to it.
- def initialize(name='mock', stubs_and_options={})
+ def initialize(name=nil, stubs_and_options={})
if name.is_a?(Hash) && stubs_and_options.empty?
stubs_and_options = name
- build_name_from_options stubs_and_options
+ @name = nil
else
@name = name
end
@@ -66,11 +66,6 @@ def assign_stubs(stubs)
stub!(message).and_return(response)
end
end
-
- def build_name_from_options(options)
- vals = options.inject([]) {|coll, pair| coll << "#{pair.first}: #{pair.last.inspect}"}
- @name = '{' + vals.join(', ') + '}'
- end
end
end
end
View
2  spec/spec/mocks/bug_report_10263_spec.rb
@@ -20,7 +20,7 @@
begin
@mock.foobar
rescue Exception => e
- e.message.should == "Mock 'test mock' received unexpected message :foobar with (no args)"
+ e.message.should == "Mock \"test mock\" received unexpected message :foobar with (no args)"
end
end
end
View
4 spec/spec/mocks/bug_report_15719_spec.rb
@@ -9,7 +9,7 @@ module Mocks
m.should_receive(:bar).with("message")
lambda {
m.bar("different message")
- }.should raise_error(Spec::Mocks::MockExpectationError, %Q{Mock 'foo' received :bar with unexpected arguments\n expected: ("message")\n got: ("different message")})
+ }.should raise_error(Spec::Mocks::MockExpectationError, %Q{Mock "foo" received :bar with unexpected arguments\n expected: ("message")\n got: ("different message")})
m.bar("message") # allows the spec to pass
end
@@ -22,7 +22,7 @@ module Mocks
m.should_receive(:bar).with("message")
lambda {
m.bar("different message")
- }.should raise_error(Spec::Mocks::MockExpectationError, %Q{Mock 'foo' received :bar with unexpected arguments\n expected: ("message")\n got: ("different message")})
+ }.should raise_error(Spec::Mocks::MockExpectationError, %Q{Mock "foo" received :bar with unexpected arguments\n expected: ("message")\n got: ("different message")})
m.bar("message") # allows the spec to pass
end
end
View
2  spec/spec/mocks/double_spec.rb
@@ -7,6 +7,6 @@
it "uses 'Double' in failure messages" do
double = double('name')
- expect {double.foo}.to raise_error(/Double 'name' received/)
+ expect {double.foo}.to raise_error(/Double "name" received/)
end
end
View
10 spec/spec/mocks/failing_argument_matchers_spec.rb
@@ -52,35 +52,35 @@ module Mocks
@mock.should_receive(:random_call).with(:a => "b", :c => "d")
lambda do
@mock.random_call(:a => "b", :c => "e")
- end.should raise_error(MockExpectationError, /Mock 'test mock' received :random_call with unexpected arguments\n expected: \(\{(:a=>\"b\", :c=>\"d\"|:c=>\"d\", :a=>\"b\")\}\)\n got: \(\{(:a=>\"b\", :c=>\"e\"|:c=>\"e\", :a=>\"b\")\}\)/)
+ end.should raise_error(MockExpectationError, /Mock "test mock" received :random_call with unexpected arguments\n expected: \(\{(:a=>\"b\", :c=>\"d\"|:c=>\"d\", :a=>\"b\")\}\)\n got: \(\{(:a=>\"b\", :c=>\"e\"|:c=>\"e\", :a=>\"b\")\}\)/)
end
it "should fail for a hash w/ wrong keys" do
@mock.should_receive(:random_call).with(:a => "b", :c => "d")
lambda do
@mock.random_call("a" => "b", "c" => "d")
- end.should raise_error(MockExpectationError, /Mock 'test mock' received :random_call with unexpected arguments\n expected: \(\{(:a=>\"b\", :c=>\"d\"|:c=>\"d\", :a=>\"b\")\}\)\n got: \(\{(\"a\"=>\"b\", \"c\"=>\"d\"|\"c\"=>\"d\", \"a\"=>\"b\")\}\)/)
+ end.should raise_error(MockExpectationError, /Mock "test mock" received :random_call with unexpected arguments\n expected: \(\{(:a=>\"b\", :c=>\"d\"|:c=>\"d\", :a=>\"b\")\}\)\n got: \(\{(\"a\"=>\"b\", \"c\"=>\"d\"|\"c\"=>\"d\", \"a\"=>\"b\")\}\)/)
end
it "should match against a Matcher" do
lambda do
@mock.should_receive(:msg).with(equal(3))
@mock.msg(37)
- end.should raise_error(MockExpectationError, "Mock 'test mock' received :msg with unexpected arguments\n expected: (equal 3)\n got: (37)")
+ end.should raise_error(MockExpectationError, "Mock \"test mock\" received :msg with unexpected arguments\n expected: (equal 3)\n got: (37)")
end
it "should fail no_args with one arg" do
lambda do
@mock.should_receive(:msg).with(no_args)
@mock.msg(37)
- end.should raise_error(MockExpectationError, "Mock 'test mock' received :msg with unexpected arguments\n expected: (no args)\n got: (37)")
+ end.should raise_error(MockExpectationError, "Mock \"test mock\" received :msg with unexpected arguments\n expected: (no args)\n got: (37)")
end
it "should fail hash_including with missing key" do
lambda do
@mock.should_receive(:msg).with(hash_including(:a => 1))
@mock.msg({})
- end.should raise_error(MockExpectationError, "Mock 'test mock' received :msg with unexpected arguments\n expected: (hash_including(:a=>1))\n got: ({})")
+ end.should raise_error(MockExpectationError, "Mock \"test mock\" received :msg with unexpected arguments\n expected: (hash_including(:a=>1))\n got: ({})")
end
it "should fail with block matchers" do
View
6 spec/spec/mocks/mock_ordering_spec.rb
@@ -36,7 +36,7 @@ module Mocks
@mock.should_receive(:two).ordered
lambda do
@mock.two
- end.should raise_error(MockExpectationError, "Mock 'test mock' received :two out of order")
+ end.should raise_error(MockExpectationError, "Mock \"test mock\" received :two out of order")
end
it "should fail if third call comes first" do
@@ -46,7 +46,7 @@ module Mocks
@mock.one
lambda do
@mock.three
- end.should raise_error(MockExpectationError, "Mock 'test mock' received :three out of order")
+ end.should raise_error(MockExpectationError, "Mock \"test mock\" received :three out of order")
end
it "should fail if third call comes second" do
@@ -56,7 +56,7 @@ module Mocks
@mock.one
lambda do
@mock.three
- end.should raise_error(MockExpectationError, "Mock 'test mock' received :three out of order")
+ end.should raise_error(MockExpectationError, "Mock \"test mock\" received :three out of order")
end
it "should ignore order of non ordered calls" do
View
38 spec/spec/mocks/mock_spec.rb
@@ -68,7 +68,7 @@ module Mocks
lambda {
@mock.not_expected
violated
- }.should raise_error(MockExpectationError, "Mock 'test mock' expected :not_expected with (no args) 0 times, but received it once")
+ }.should raise_error(MockExpectationError, "Mock \"test mock\" expected :not_expected with (no args) 0 times, but received it once")
end
it "should fail when receiving message specified as not to be received with args" do
@@ -76,7 +76,7 @@ module Mocks
lambda {
@mock.not_expected("unexpected text")
violated
- }.should raise_error(MockExpectationError, "Mock 'test mock' expected :not_expected with (\"unexpected text\") 0 times, but received it once")
+ }.should raise_error(MockExpectationError, "Mock \"test mock\" expected :not_expected with (\"unexpected text\") 0 times, but received it once")
end
it "should pass when receiving message specified as not to be received with wrong args" do
@@ -108,7 +108,7 @@ module Mocks
lambda {
@mock.something("a","d","c")
violated
- }.should raise_error(MockExpectationError, "Mock 'test mock' received :something with unexpected arguments\n expected: (\"a\", \"b\", \"c\")\n got: (\"a\", \"d\", \"c\")")
+ }.should raise_error(MockExpectationError, "Mock \"test mock\" received :something with unexpected arguments\n expected: (\"a\", \"b\", \"c\")\n got: (\"a\", \"d\", \"c\")")
end
it "should raise exception if args don't match when method called even when the method is stubbed" do
@@ -117,7 +117,7 @@ module Mocks
lambda {
@mock.something("a","d","c")
@mock.rspec_verify
- }.should raise_error(MockExpectationError, "Mock 'test mock' received :something with unexpected arguments\n expected: (\"a\", \"b\", \"c\")\n got: ([\"a\", \"d\", \"c\"])")
+ }.should raise_error(MockExpectationError, "Mock \"test mock\" received :something with unexpected arguments\n expected: (\"a\", \"b\", \"c\")\n got: ([\"a\", \"d\", \"c\"])")
end
it "should raise exception if args don't match when method called even when using null_object" do
@@ -126,14 +126,14 @@ module Mocks
lambda {
@mock.something("a","d","c")
@mock.rspec_verify
- }.should raise_error(MockExpectationError, "Mock 'test mock' received :something with unexpected arguments\n expected: (\"a\", \"b\", \"c\")\n got: ([\"a\", \"d\", \"c\"])")
+ }.should raise_error(MockExpectationError, "Mock \"test mock\" received :something with unexpected arguments\n expected: (\"a\", \"b\", \"c\")\n got: ([\"a\", \"d\", \"c\"])")
end
it "should fail if unexpected method called" do
lambda {
@mock.something("a","b","c")
violated
- }.should raise_error(MockExpectationError, "Mock 'test mock' received unexpected message :something with (\"a\", \"b\", \"c\")")
+ }.should raise_error(MockExpectationError, "Mock \"test mock\" received unexpected message :something with (\"a\", \"b\", \"c\")")
end
it "should use block for expectation if provided" do
@@ -150,21 +150,21 @@ module Mocks
@mock.should_receive(:something) {| bool | bool.should be_true}
lambda {
@mock.something false
- }.should raise_error(MockExpectationError, /Mock 'test mock' received :something but passed block failed with: expected true, got false/)
+ }.should raise_error(MockExpectationError, /Mock "test mock" received :something but passed block failed with: expected true, got false/)
end
it "should fail right away when method defined as never is received" do
@mock.should_receive(:not_expected).never
lambda {
@mock.not_expected
- }.should raise_error(MockExpectationError, "Mock 'test mock' expected :not_expected with (no args) 0 times, but received it once")
+ }.should raise_error(MockExpectationError, "Mock \"test mock\" expected :not_expected with (no args) 0 times, but received it once")
end
it "should eventually fail when method defined as never is received" do
@mock.should_receive(:not_expected).never
lambda {
@mock.not_expected
- }.should raise_error(MockExpectationError, "Mock 'test mock' expected :not_expected with (no args) 0 times, but received it once")
+ }.should raise_error(MockExpectationError, "Mock \"test mock\" expected :not_expected with (no args) 0 times, but received it once")
end
it "should raise when told to" do
@@ -224,14 +224,14 @@ module Mocks
@mock.should_receive(:something).with(no_args())
lambda {
@mock.something 1
- }.should raise_error(MockExpectationError, "Mock 'test mock' received :something with unexpected arguments\n expected: (no args)\n got: (1)")
+ }.should raise_error(MockExpectationError, "Mock \"test mock\" received :something with unexpected arguments\n expected: (no args)\n got: (1)")
end
it "should fail when args are expected but none are received" do
@mock.should_receive(:something).with(1)
lambda {
@mock.something
- }.should raise_error(MockExpectationError, "Mock 'test mock' received :something with unexpected arguments\n expected: (1)\n got: (no args)")
+ }.should raise_error(MockExpectationError, "Mock \"test mock\" received :something with unexpected arguments\n expected: (1)\n got: (no args)")
end
it "should return value from block by default" do
@@ -339,7 +339,7 @@ module Mocks
@mock.should_receive(:yield_back).with(no_args()).once.and_yield('wha', 'zup')
lambda {
@mock.yield_back {|a|}
- }.should raise_error(MockExpectationError, "Mock 'test mock' yielded |\"wha\", \"zup\"| to block with arity of 1")
+ }.should raise_error(MockExpectationError, "Mock \"test mock\" yielded |\"wha\", \"zup\"| to block with arity of 1")
end
it "should fail when calling yielding method consecutively with wrong arity" do
@@ -350,14 +350,14 @@ module Mocks
a, b = nil
c = []
@mock.yield_back {|a,b| c << [a, b]}
- }.should raise_error(MockExpectationError, "Mock 'test mock' yielded |\"down\"| to block with arity of 2")
+ }.should raise_error(MockExpectationError, "Mock \"test mock\" yielded |\"down\"| to block with arity of 2")
end
it "should fail when calling yielding method without block" do
@mock.should_receive(:yield_back).with(no_args()).once.and_yield('wha', 'zup')
lambda {
@mock.yield_back
- }.should raise_error(MockExpectationError, "Mock 'test mock' asked to yield |[\"wha\", \"zup\"]| but no block was passed")
+ }.should raise_error(MockExpectationError, "Mock \"test mock\" asked to yield |[\"wha\", \"zup\"]| but no block was passed")
end
it "should be able to mock send" do
@@ -384,7 +384,7 @@ module Mocks
@mock.rspec_verify
lambda {
@mock.foobar
- }.should raise_error(MockExpectationError, "Mock 'test mock' received unexpected message :foobar with (no args)")
+ }.should raise_error(MockExpectationError, "Mock \"test mock\" received unexpected message :foobar with (no args)")
end
it "should restore objects to their original state on rspec_reset" do
@@ -569,11 +569,11 @@ def add_call
end
describe "mock created with no name" do
- it "should name itself after initially stubbed methods" do
- string = mock(:foo => "woo", :bar => "car").to_s
- string.should include('foo: \"woo\"', 'bar: \"car\"')
+ it "should not use a name in a failure message" do
+ mock = mock()
+ expect {mock.foo}.to raise_error(/Mock received/)
end
-
+
it "should respond to initially stubbed methods" do
mock = mock(:foo => "woo", :bar => "car")
mock.foo.should == "woo"
View
14 spec/spec/mocks/multiple_return_value_spec.rb
@@ -20,7 +20,7 @@ module Mocks
third = Object.new
@mock.message.should == @return_values[0]
@mock.message.should == @return_values[1]
- lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock 'mock' expected :message with (any args) 3 times, but received it twice")
+ lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock \"mock\" expected :message with (any args) 3 times, but received it twice")
end
it "should complain when there are too many calls" do
@@ -29,7 +29,7 @@ module Mocks
@mock.message.should == @return_values[1]
@mock.message.should == @return_values[2]
@mock.message.should == @return_values[2]
- lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock 'mock' expected :message with (any args) 3 times, but received it 4 times")
+ lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock \"mock\" expected :message with (any args) 3 times, but received it 4 times")
end
end
@@ -51,7 +51,7 @@ module Mocks
third = Object.new
@mock.message.should == @return_values[0]
@mock.message.should == @return_values[1]
- lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock 'mock' expected :message with (any args) 3 times, but received it twice")
+ lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock \"mock\" expected :message with (any args) 3 times, but received it twice")
end
it "should complain when there are too many calls" do
@@ -60,7 +60,7 @@ module Mocks
@mock.message.should == @return_values[1]
@mock.message.should == @return_values[2]
@mock.message.should == @return_values[2]
- lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock 'mock' expected :message with (any args) 3 times, but received it 4 times")
+ lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock \"mock\" expected :message with (any args) 3 times, but received it 4 times")
end
end
@@ -79,7 +79,7 @@ module Mocks
it "should fail when called less than the specified number" do
@mock.message.should equal(11)
- lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock 'mock' expected :message with (no args) twice, but received it once")
+ lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock \"mock\" expected :message with (no args) twice, but received it once")
end
end
describe "a Mock expectation with multiple return values with a specified count larger than the number of values" do
@@ -97,7 +97,7 @@ module Mocks
it "should fail when called less than the specified number" do
@mock.message.should equal(11)
- lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock 'mock' expected :message with (any args) 3 times, but received it once")
+ lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock \"mock\" expected :message with (any args) 3 times, but received it once")
end
it "should fail when called greater than the specified number" do
@@ -105,7 +105,7 @@ module Mocks
@mock.message.should equal(22)
@mock.message.should equal(22)
@mock.message.should equal(22)
- lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock 'mock' expected :message with (any args) 3 times, but received it 4 times")
+ lambda { @mock.rspec_verify }.should raise_error(MockExpectationError, "Mock \"mock\" expected :message with (any args) 3 times, but received it 4 times")
end
end
end
View
2  spec/spec/mocks/stub_spec.rb
@@ -195,7 +195,7 @@ def existing_instance_method
it "should use 'Stub' in the failure message" do
stub = stub('name')
- expect {stub.foo}.to raise_error(/Stub 'name' received/)
+ expect {stub.foo}.to raise_error(/Stub "name" received/)
end
end
View
2  spec/spec/mocks/stubbed_message_expectations_spec.rb
@@ -17,7 +17,7 @@ module Mocks
m.foo('third')
lambda do
m.rspec_verify
- end.should raise_error(%Q|Mock 'mock' received :foo with unexpected arguments\n expected: ("first")\n got: (["second"], ["third"])|)
+ end.should raise_error(%Q|Mock "mock" received :foo with unexpected arguments\n expected: ("first")\n got: (["second"], ["third"])|)
m.rspec_reset
end
end
View
6 spec/spec/runner/formatter/html_formatted-1.8.6.html
@@ -190,7 +190,7 @@
<dd class="spec failed">
<span class="failed_spec_name">should fail when expected message not received</span>
<div class="failure" id="failure_1">
- <div class="message"><pre>Mock 'poke me' expected :poke with (any args) once, but received it 0 times</pre></div>
+ <div class="message"><pre>Mock &quot;poke me&quot; expected :poke with (any args) once, but received it 0 times</pre></div>
<div class="backtrace"><pre>./examples/failing/mocking_example.rb:11:
./spec/spec_helper.rb:44:in `run_with'
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:41:
@@ -207,7 +207,7 @@
<dd class="spec failed">
<span class="failed_spec_name">should fail when messages are received out of order</span>
<div class="failure" id="failure_2">
- <div class="message"><pre>Mock 'one two three' received :three out of order</pre></div>
+ <div class="message"><pre>Mock &quot;one two three&quot; received :three out of order</pre></div>
<div class="backtrace"><pre>./examples/failing/mocking_example.rb:20:
./spec/spec_helper.rb:44:in `run_with'
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:41:
@@ -224,7 +224,7 @@
<dd class="spec failed">
<span class="failed_spec_name">should get yelled at when sending unexpected messages</span>
<div class="failure" id="failure_3">
- <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>
+ <div class="message"><pre>Mock &quot;don't talk to me&quot; expected :any_message_at_all with (no args) 0 times, but received it once</pre></div>
<div class="backtrace"><pre>./examples/failing/mocking_example.rb:27:
./spec/spec_helper.rb:44:in `run_with'
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:41:
View
6 spec/spec/runner/formatter/html_formatted-1.8.7.html
@@ -190,7 +190,7 @@
<dd class="spec failed">
<span class="failed_spec_name">should fail when expected message not received</span>
<div class="failure" id="failure_1">
- <div class="message"><pre>Mock 'poke me' expected :poke with (any args) once, but received it 0 times</pre></div>
+ <div class="message"><pre>Mock &quot;poke me&quot; expected :poke with (any args) once, but received it 0 times</pre></div>
<div class="backtrace"><pre>./examples/failing/mocking_example.rb:11:
./spec/spec_helper.rb:44:in `run_with'
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:41:
@@ -208,7 +208,7 @@
<dd class="spec failed">
<span class="failed_spec_name">should fail when messages are received out of order</span>
<div class="failure" id="failure_2">
- <div class="message"><pre>Mock 'one two three' received :three out of order</pre></div>
+ <div class="message"><pre>Mock &quot;one two three&quot; received :three out of order</pre></div>
<div class="backtrace"><pre>./examples/failing/mocking_example.rb:20:
./spec/spec_helper.rb:44:in `run_with'
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:41:
@@ -226,7 +226,7 @@
<dd class="spec failed">
<span class="failed_spec_name">should get yelled at when sending unexpected messages</span>
<div class="failure" id="failure_3">
- <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>
+ <div class="message"><pre>Mock &quot;don't talk to me&quot; expected :any_message_at_all with (no args) 0 times, but received it once</pre></div>
<div class="backtrace"><pre>./examples/failing/mocking_example.rb:27:
./spec/spec_helper.rb:44:in `run_with'
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:41:
View
6 spec/spec/runner/formatter/html_formatted-1.9.1.html
@@ -190,7 +190,7 @@
<dd class="spec failed">
<span class="failed_spec_name">should fail when expected message not received</span>
<div class="failure" id="failure_1">
- <div class="message"><pre>Mock 'poke me' expected :poke with (any args) once, but received it 0 times</pre></div>
+ <div class="message"><pre>Mock &quot;poke me&quot; expected :poke with (any args) once, but received it 0 times</pre></div>
<div class="backtrace"><pre>/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb:11:in `block (2 levels) in <top (required)>'
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec_helper.rb:44:in `run_with'
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:41:in `block (4 levels) in <module:Formatter>'
@@ -208,7 +208,7 @@
<dd class="spec failed">
<span class="failed_spec_name">should fail when messages are received out of order</span>
<div class="failure" id="failure_2">
- <div class="message"><pre>Mock 'one two three' received :three out of order</pre></div>
+ <div class="message"><pre>Mock &quot;one two three&quot; received :three out of order</pre></div>
<div class="backtrace"><pre>/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb:20:in `block (2 levels) in <top (required)>'
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec_helper.rb:44:in `run_with'
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:41:in `block (4 levels) in <module:Formatter>'
@@ -226,7 +226,7 @@
<dd class="spec failed">
<span class="failed_spec_name">should get yelled at when sending unexpected messages</span>
<div class="failure" id="failure_3">
- <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>
+ <div class="message"><pre>Mock &quot;don't talk to me&quot; expected :any_message_at_all with (no args) 0 times, but received it once</pre></div>
<div class="backtrace"><pre>/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb:27:in `block (2 levels) in <top (required)>'
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec_helper.rb:44:in `run_with'
/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/spec/spec/runner/formatter/html_formatter_spec.rb:41:in `block (4 levels) in <module:Formatter>'
View
6 spec/spec/runner/formatter/text_mate_formatted-1.8.6.html
@@ -190,7 +190,7 @@
<dd class="spec failed">
<span class="failed_spec_name">should fail when expected message not received</span>
<div class="failure" id="failure_1">
- <div class="message"><pre>Mock 'poke me' expected :poke with (any args) once, but received it 0 times</pre></div>
+ <div class="message"><pre>Mock &quot;poke me&quot; expected :poke with (any args) once, but received it 0 times</pre></div>
<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=11">./examples/failing/mocking_example.rb:11</a>
<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>
<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'
@@ -206,7 +206,7 @@
<dd class="spec failed">
<span class="failed_spec_name">should fail when messages are received out of order</span>
<div class="failure" id="failure_2">
- <div class="message"><pre>Mock 'one two three' received :three out of order</pre></div>
+ <div class="message"><pre>Mock &quot;one two three&quot; received :three out of order</pre></div>
<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=20">./examples/failing/mocking_example.rb:20</a>
<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>
<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'
@@ -222,7 +222,7 @@
<dd class="spec failed">
<span class="failed_spec_name">should get yelled at when sending unexpected messages</span>
<div class="failure" id="failure_3">
- <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>
+ <div class="message"><pre>Mock &quot;don't talk to me&quot; expected :any_message_at_all with (no args) 0 times, but received it once</pre></div>
<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=27">./examples/failing/mocking_example.rb:27</a>
<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>
<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'
View
6 spec/spec/runner/formatter/text_mate_formatted-1.8.7.html
@@ -190,7 +190,7 @@
<dd class="spec failed">
<span class="failed_spec_name">should fail when expected message not received</span>
<div class="failure" id="failure_1">
- <div class="message"><pre>Mock 'poke me' expected :poke with (any args) once, but received it 0 times</pre></div>
+ <div class="message"><pre>Mock &quot;poke me&quot; expected :poke with (any args) once, but received it 0 times</pre></div>
<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=11">./examples/failing/mocking_example.rb:11</a>
<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>
<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'
@@ -207,7 +207,7 @@
<dd class="spec failed">
<span class="failed_spec_name">should fail when messages are received out of order</span>
<div class="failure" id="failure_2">
- <div class="message"><pre>Mock 'one two three' received :three out of order</pre></div>
+ <div class="message"><pre>Mock &quot;one two three&quot; received :three out of order</pre></div>
<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=20">./examples/failing/mocking_example.rb:20</a>
<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>
<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'
@@ -224,7 +224,7 @@
<dd class="spec failed">
<span class="failed_spec_name">should get yelled at when sending unexpected messages</span>
<div class="failure" id="failure_3">
- <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>
+ <div class="message"><pre>Mock &quot;don't talk to me&quot; expected :any_message_at_all with (no args) 0 times, but received it once</pre></div>
<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=27">./examples/failing/mocking_example.rb:27</a>
<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>
<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'
View
6 spec/spec/runner/formatter/text_mate_formatted-1.9.1.html
@@ -190,7 +190,7 @@
<dd class="spec failed">
<span class="failed_spec_name">should fail when expected message not received</span>
<div class="failure" id="failure_1">
- <div class="message"><pre>Mock 'poke me' expected :poke with (any args) once, but received it 0 times</pre></div>
+ <div class="message"><pre>Mock &quot;poke me&quot; expected :poke with (any args) once, but received it 0 times</pre></div>
<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=11">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb:11</a> :in `block (2 levels) in <top (required)>'
<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> :in `block (4 levels) in <module:Formatter>'
<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'
@@ -207,7 +207,7 @@
<dd class="spec failed">
<span class="failed_spec_name">should fail when messages are received out of order</span>
<div class="failure" id="failure_2">
- <div class="message"><pre>Mock 'one two three' received :three out of order</pre></div>
+ <div class="message"><pre>Mock &quot;one two three&quot; received :three out of order</pre></div>
<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=20">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb:20</a> :in `block (2 levels) in <top (required)>'
<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> :in `block (4 levels) in <module:Formatter>'
<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'
@@ -224,7 +224,7 @@
<dd class="spec failed">
<span class="failed_spec_name">should get yelled at when sending unexpected messages</span>
<div class="failure" id="failure_3">
- <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>
+ <div class="message"><pre>Mock &quot;don't talk to me&quot; expected :any_message_at_all with (no args) 0 times, but received it once</pre></div>
<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=27">/Users/david/projects/ruby/rspec-dev/example_rails_app/vendor/plugins/rspec/examples/failing/mocking_example.rb:27</a> :in `block (2 levels) in <top (required)>'
<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> :in `block (4 levels) in <module:Formatter>'
<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'
Please sign in to comment.
Something went wrong with that request. Please try again.