diff options
author | Philip Arndt <parndt@gmail.com> | 2012-02-23 00:54:43 -0800 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2012-02-23 00:54:43 -0800 |
commit | 98f8d3f51529845a76b2ade37f1a1ca7ba8e2c62 (patch) | |
tree | cbcc5471c9114b47206ddfb38bb81183c5fc1065 /spec/models/refinery | |
parent | f82d2c96e49cdb3c649358b5fd3fbf3f52389660 (diff) | |
parent | d353cd556cd63da1b60600bb8a6ab38ca7f09f1c (diff) | |
download | refinerycms-blog-98f8d3f51529845a76b2ade37f1a1ca7ba8e2c62.tar.gz refinerycms-blog-98f8d3f51529845a76b2ade37f1a1ca7ba8e2c62.tar.bz2 refinerycms-blog-98f8d3f51529845a76b2ade37f1a1ca7ba8e2c62.zip |
Merge pull request #203 from substantial/cleanup_models
Cleanup model code
Diffstat (limited to 'spec/models/refinery')
-rw-r--r-- | spec/models/refinery/blog/post_spec.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/spec/models/refinery/blog/post_spec.rb b/spec/models/refinery/blog/post_spec.rb index acc4f95..0b96311 100644 --- a/spec/models/refinery/blog/post_spec.rb +++ b/spec/models/refinery/blog/post_spec.rb @@ -148,23 +148,6 @@ module Refinery end end - describe "#category_ids=" do - before do - @cat1 = FactoryGirl.create(:blog_category, :id => 1) - @cat2 = FactoryGirl.create(:blog_category, :id => 2) - @cat3 = FactoryGirl.create(:blog_category, :id => 3) - post.category_ids = [1,2,"","",3] - end - - it "rejects blank category ids" do - post.categories.count.should == 3 - end - - it "returns array of categories based on given ids" do - post.categories.should == [@cat1, @cat2, @cat3] - end - end - describe ".comments_allowed?" do context "with Refinery::Setting comments_allowed set to true" do before do |