Skip to content

Instantly share code, notes, and snippets.

@soulcutter
Forked from avdi/gist:2705101
Created May 15, 2012 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soulcutter/2705200 to your computer and use it in GitHub Desktop.
Save soulcutter/2705200 to your computer and use it in GitHub Desktop.
describe Article do
subject(:article) { Article.new }
it "validates presence of :title" do
article.should validate_presence_of(:title)
end
end
@dchelimsky
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment