aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
diff options
context:
space:
mode:
authorBrice Sanchez <contact@brice-sanchez.com>2016-05-30 00:37:53 -0400
committerBrice Sanchez <contact@brice-sanchez.com>2016-05-30 22:17:42 -0400
commitb0019fd9acdf04292ff402e1b9d8528517ea7a63 (patch)
tree306fdd3ca18bca2b5fc38cd6916a5653676768ee /spec/models
parenteafbd3f3992dc735cbe8fe8efc8296a5c1dc2b78 (diff)
downloadrefinerycms-blog-b0019fd9acdf04292ff402e1b9d8528517ea7a63.tar.gz
refinerycms-blog-b0019fd9acdf04292ff402e1b9d8528517ea7a63.tar.bz2
refinerycms-blog-b0019fd9acdf04292ff402e1b9d8528517ea7a63.zip
Fix specs
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/refinery/blog/category_spec.rb6
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