aboutsummaryrefslogtreecommitdiffstats
path: root/spec/matchers
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-05-17 14:43:27 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-05-17 14:43:27 -0700
commit2e252c4cc8003489185658db1b76bee69be4a010 (patch)
tree2df7a9553013c272bcbd4cc171b2001e3e416fb6 /spec/matchers
parent3f55d33e530da1b5c454e0cfe920462d497649c8 (diff)
downloadrails-2e252c4cc8003489185658db1b76bee69be4a010.tar.gz
rails-2e252c4cc8003489185658db1b76bee69be4a010.tar.bz2
rails-2e252c4cc8003489185658db1b76bee69be4a010.zip
slight performance improvement
Diffstat (limited to 'spec/matchers')
-rw-r--r--spec/matchers/be_like.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/matchers/be_like.rb b/spec/matchers/be_like.rb
index c1b1ffc3fd..4ff5bc532f 100644
--- a/spec/matchers/be_like.rb
+++ b/spec/matchers/be_like.rb
@@ -10,11 +10,11 @@ module BeLikeMatcher
end
def failure_message
- "expected #{@actual} to be like #{@expected}"
+ "expected\n#{@actual}\nto be like\n#{@expected}"
end
def negative_failure_message
- "expected #{@actual} to be unlike #{@expected}"
+ "expected\n#{@actual}\nto be unlike\n#{@expected}"
end
end