aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/blog_post_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/blog_post_spec.rb b/spec/models/blog_post_spec.rb
index 0514473..46da3ac 100644
--- a/spec/models/blog_post_spec.rb
+++ b/spec/models/blog_post_spec.rb
@@ -184,4 +184,10 @@ describe BlogPost do
end
end
end
+
+ describe "custom teasers" do
+ it "should allow a custom teaser" do
+ Factory.build(:blog_post, :custom_teaser => 'This is some custom content').should be_valid
+ end
+ end
end