Permalink
Browse files

words

  • Loading branch information...
1 parent a23000e commit 0e84dfb01850a14e79e526f999b35c86430f828d @dchelimsky dchelimsky committed Feb 1, 2010
Showing with 15 additions and 0 deletions.
  1. +15 −0 Upgrade.markdown
View
@@ -1,5 +1,20 @@
# Upgrade to rspec-2.0
+## What's new
+
+### New `eq` matcher.
+
+`Rspec::Matchers` now offers you two approaches to differentiating between
+object identity. You can use the rspec-1 approach:
+
+ actual.should == expected # object equality
+ actual.should equal(expected) # object identity
+
+... or, if you prefer:
+
+ actual.should eq(expected) # object equality
+ actual.should be(expected) # object identity
+
## What's been removed
### simple_matcher

0 comments on commit 0e84dfb

Please sign in to comment.