Created
February 24, 2012 20:28
-
-
Save davidcelis/1903535 to your computer and use it in GitHub Desktop.
a spec, yo
This file contains 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 Model do | |
describe "#method" do | |
it "should return the expected value" do | |
obj = Factory(:model) | |
obj.method.should == __ | |
end | |
end | |
describe "#some_other_method" do | |
it "should not raise an exception" do | |
obj = Factory(:model) | |
obj.some_other_method.should_not raise_exception | |
end | |
end | |
# ... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment