Created
June 28, 2011 00:52
-
-
Save atoulme/1050241 to your computer and use it in GitHub Desktop.
should
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe "No should was harmed" do | |
it "should not care whatever I do with == for booleans" do | |
true == false | |
end | |
it "should not care for numbers" do | |
1 == 0 | |
end | |
it "should not even do type validation" do | |
"str".eql? :str | |
end | |
end | |
describe "Should is the word" do | |
it "should care whatever I do with == for booleans" do | |
true.should == false | |
end | |
it "should care for numbers" do | |
1.should == 0 | |
end | |
it "should even do type validation" do | |
"str".should eql(:str) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment