From c75cf8a00e916e795a0299a55e933c8b3cad17ac Mon Sep 17 00:00:00 2001 From: Joe Sak Date: Thu, 24 Feb 2011 20:46:20 -0600 Subject: Blog Posts belong to an author ("user_id") --- spec/models/blog_posts_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec/models') diff --git a/spec/models/blog_posts_spec.rb b/spec/models/blog_posts_spec.rb index 9a58e3f..6b5edcb 100644 --- a/spec/models/blog_posts_spec.rb +++ b/spec/models/blog_posts_spec.rb @@ -46,6 +46,12 @@ describe BlogPost do @blog_post.should respond_to(:categories) end end + + describe "authors" do + it "are authored" do + BlogPost.new.methods.should include(:author) + end + end describe "by_archive scope" do it "returns all posts from specified month" do -- cgit v1.2.3