aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2010-12-07 09:09:55 +0200
committerUģis Ozols <ugis.ozolss@gmail.com>2010-12-07 09:09:55 +0200
commit9ff63388f31b20f1ce76b9bc61147720b801dfae (patch)
tree43333f8385e24655f466fa49063920ce0324bea7 /app
parentffa7b65e82038afd499459afd4c3fd9ad0538e9f (diff)
downloadrefinerycms-blog-9ff63388f31b20f1ce76b9bc61147720b801dfae.tar.gz
refinerycms-blog-9ff63388f31b20f1ce76b9bc61147720b801dfae.tar.bz2
refinerycms-blog-9ff63388f31b20f1ce76b9bc61147720b801dfae.zip
Added some rspec tests for blog post model.
Diffstat (limited to 'app')
-rw-r--r--app/models/blog_post.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/blog_post.rb b/app/models/blog_post.rb
index ccd10e2..1fb9900 100644
--- a/app/models/blog_post.rb
+++ b/app/models/blog_post.rb
@@ -6,6 +6,7 @@ class BlogPost < ActiveRecord::Base
acts_as_indexed :fields => [:title, :body]
validates :title, :presence => true, :uniqueness => true
+ validates :body, :presence => true
has_friendly_id :title, :use_slug => true