diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2010-12-07 09:09:55 +0200 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2010-12-07 09:09:55 +0200 |
commit | 9ff63388f31b20f1ce76b9bc61147720b801dfae (patch) | |
tree | 43333f8385e24655f466fa49063920ce0324bea7 /app | |
parent | ffa7b65e82038afd499459afd4c3fd9ad0538e9f (diff) | |
download | refinerycms-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.rb | 1 |
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 |