aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/blog_posts_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/blog_posts_spec.rb')
-rw-r--r--spec/models/blog_posts_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/blog_posts_spec.rb b/spec/models/blog_posts_spec.rb
index 9a58e3f..ef1cbf8 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.instance_methods.map(&:to_sym).include? :author
+ end
+ end
describe "by_archive scope" do
it "returns all posts from specified month" do