diff options
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/refinery/blog/category_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/models/refinery/blog/category_spec.rb b/spec/models/refinery/blog/category_spec.rb index 577cb9d..4e40269 100644 --- a/spec/models/refinery/blog/category_spec.rb +++ b/spec/models/refinery/blog/category_spec.rb @@ -4,7 +4,7 @@ module Refinery module Blog describe Category, type: :model do let(:category) { FactoryGirl.create(:blog_category) } - let(:refinery_user) { FactoryGirl.create(:refinery_user) } + let(:author) { FactoryGirl.create(:authentication_devise_refinery_user) } describe "validations" do it "requires title" do @@ -25,12 +25,12 @@ module Refinery first_post = category.posts.create!({ :title => "Breaking News: Joe Sak is hot stuff you guys!!", :body => "True story.", :published_at => Time.now.yesterday, - :author => refinery_user }) + :author => author }) latest_post = category.posts.create!({ :title => "parndt is p. okay", :body => "For a Kiwi.", :published_at => Time.now, - :author => refinery_user }) + :author => author }) expect(category.posts.newest_first.first).to eq(latest_post) end |