From b0019fd9acdf04292ff402e1b9d8528517ea7a63 Mon Sep 17 00:00:00 2001 From: Brice Sanchez Date: Mon, 30 May 2016 00:37:53 -0400 Subject: Fix specs --- spec/models/refinery/blog/category_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/models') 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 -- cgit v1.2.3