aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2012-02-23 00:09:09 -0800
committerPete Higgins <pete@peterhiggins.org>2012-02-23 00:09:09 -0800
commit2537923034163a3a99810bde11cdee95339d60b5 (patch)
treebd2d373ea54a132a67c7f64577fcbbd9bc6dfa19 /spec/models
parentc9ff548329cf1bbc2e82653a81a56ef57c9676c5 (diff)
downloadrefinerycms-blog-2537923034163a3a99810bde11cdee95339d60b5.tar.gz
refinerycms-blog-2537923034163a3a99810bde11cdee95339d60b5.tar.bz2
refinerycms-blog-2537923034163a3a99810bde11cdee95339d60b5.zip
Remove functionality provided by rails.
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/refinery/blog/post_spec.rb17
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