Skip to content

Commit

Permalink
Don't leak diffing details into double_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Phippen committed Aug 30, 2014
1 parent 29fdd16 commit c51b2f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/rspec/mocks/double_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def @double.method_with_default_argument(arg={}); end
expect {
@double.method_with_default_argument(nil)
verify @double
}.to raise_error(RSpec::Mocks::MockExpectationError, "Double \"test double\" received :method_with_default_argument with unexpected arguments\n expected: ({})\n got: (nil) \e[0m\n\e[0m\e[34m@@ -1,2 +1,2 @@\n\e[0m\e[31m-[{}]\n\e[0m\e[32m+[nil]\n\e[0m")
}.to raise_error(RSpec::Mocks::MockExpectationError, a_string_starting_with("Double \"test double\" received :method_with_default_argument with unexpected arguments\n expected: ({})\n got: (nil)"))
end
end

Expand Down

0 comments on commit c51b2f7

Please sign in to comment.