Skip to content

Instantly share code, notes, and snippets.

@davidcelis
Created February 24, 2012 20:28
Show Gist options
  • Save davidcelis/1903535 to your computer and use it in GitHub Desktop.
Save davidcelis/1903535 to your computer and use it in GitHub Desktop.
a spec, yo
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