aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/refinery
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2013-06-27 09:25:19 +0300
committerUģis Ozols <ugis.ozolss@gmail.com>2013-06-27 09:25:19 +0300
commit7a76219d721d6e07a8b99dd3bbcfb87136d05052 (patch)
tree133c48dca98cd416eda5b9e185d28d5972cd7051 /spec/models/refinery
parenta8af874920fff981eb535d100d736f2a0017f266 (diff)
downloadrefinerycms-blog-7a76219d721d6e07a8b99dd3bbcfb87136d05052.tar.gz
refinerycms-blog-7a76219d721d6e07a8b99dd3bbcfb87136d05052.tar.bz2
refinerycms-blog-7a76219d721d6e07a8b99dd3bbcfb87136d05052.zip
Update specs due to recent Capybara/FactoryGirl upgrade.
Diffstat (limited to 'spec/models/refinery')
-rw-r--r--spec/models/refinery/blog/post_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/refinery/blog/post_spec.rb b/spec/models/refinery/blog/post_spec.rb
index 84e9c87..cec6a2f 100644
--- a/spec/models/refinery/blog/post_spec.rb
+++ b/spec/models/refinery/blog/post_spec.rb
@@ -114,15 +114,15 @@ module Refinery
describe "#live?" do
it "returns true if post is not in draft and it's published" do
- Factory.build(:blog_post).should be_live
+ FactoryGirl.build(:blog_post).should be_live
end
it "returns false if post is in draft" do
- Factory.build(:blog_post, :draft => true).should_not be_live
+ FactoryGirl.build(:blog_post, :draft => true).should_not be_live
end
it "returns false if post pub date is in future" do
- Factory.build(:blog_post, :published_at => Time.now.advance(:minutes => 1)).should_not be_live
+ FactoryGirl.build(:blog_post, :published_at => Time.now.advance(:minutes => 1)).should_not be_live
end
end