Skip to content

Instantly share code, notes, and snippets.

@atoulme
Created June 28, 2011 00:52
Show Gist options
  • Save atoulme/1050241 to your computer and use it in GitHub Desktop.
Save atoulme/1050241 to your computer and use it in GitHub Desktop.
should
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