diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-02-04 21:22:51 +0200 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-02-04 21:22:51 +0200 |
commit | 34fd7b7b89da669b09cbd910cea109ff106bd85f (patch) | |
tree | 6a61422c88ce095a2ac9ab17a7f1ddf324c9dad7 /spec/models/refinery | |
parent | 6cfebfae84491e4aa9aed8f3a7c019431dbb39c0 (diff) | |
download | refinerycms-blog-34fd7b7b89da669b09cbd910cea109ff106bd85f.tar.gz refinerycms-blog-34fd7b7b89da669b09cbd910cea109ff106bd85f.tar.bz2 refinerycms-blog-34fd7b7b89da669b09cbd910cea109ff106bd85f.zip |
Move some of the Refinery::Setting's over to Refinery::Blog.
Diffstat (limited to 'spec/models/refinery')
-rw-r--r-- | spec/models/refinery/blog/post_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/models/refinery/blog/post_spec.rb b/spec/models/refinery/blog/post_spec.rb index fb7e3b1..1d0a3e7 100644 --- a/spec/models/refinery/blog/post_spec.rb +++ b/spec/models/refinery/blog/post_spec.rb @@ -224,9 +224,8 @@ module Refinery end describe ".validate_source_url?" do - context "with Refinery::Setting validate_source_url set to true" do + context "with Refinery::Blog.validate_source_url set to true" do before do - Refinery::Setting.set(:validate_source_url, { :scoping => 'blog', :value => true }) Refinery::Blog.validate_source_url = true end it "should have canonical url" do @@ -234,9 +233,8 @@ module Refinery p.source_url.should include('www') end end - context "with Refinery::Setting validate_source_url set to false" do + context "with Refinery::Blog.validate_source_url set to false" do before do - Refinery::Setting.set(:validate_source_url, { :scoping => 'blog', :value => false }) Refinery::Blog.validate_source_url = false end it "should have original url" do |