summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2012-03-16 19:11:20 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2012-03-16 19:15:11 +0100
commit799cb3bb3d531ffff1fc1cd80029dfa2dc129190 (patch)
treed23128793de5305e3d8361e447a6f6d5464bb4e8
parentce75f62a7c11b6f8c57baae8650f36322920f9d6 (diff)
downloadbacon-799cb3bb3d531ffff1fc1cd80029dfa2dc129190.tar.gz
bacon-799cb3bb3d531ffff1fc1cd80029dfa2dc129190.tar.xz
bacon-799cb3bb3d531ffff1fc1cd80029dfa2dc129190.zip
Add tests for should.==
Proposed by Gabriel Horner <gabriel.horner@gmail.com>.
-rw-r--r--test/spec_bacon.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/spec_bacon.rb b/test/spec_bacon.rb
index 57e3842..bd4cfbf 100644
--- a/test/spec_bacon.rb
+++ b/test/spec_bacon.rb
@@ -40,6 +40,14 @@ describe "Bacon" do
     lambda { 2.should.satisfy { |n| n % 2 == 0 } }.should succeed
   end
 
+  it "should have should.==" do
+    lambda { "string1".should == "string1" }.should succeed
+    lambda { "string1".should == "string2" }.should fail
+
+    lambda { [1,2,3].should == [1,2,3] }.should succeed
+    lambda { [1,2,3].should == [1,2,4] }.should fail
+  end
+
   it "should have should.equal" do
     lambda { "string1".should == "string1" }.should succeed
     lambda { "string1".should == "string2" }.should fail