aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers
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/controllers
parenteafbd3f3992dc735cbe8fe8efc8296a5c1dc2b78 (diff)
downloadrefinerycms-blog-b0019fd9acdf04292ff402e1b9d8528517ea7a63.tar.gz
refinerycms-blog-b0019fd9acdf04292ff402e1b9d8528517ea7a63.tar.bz2
refinerycms-blog-b0019fd9acdf04292ff402e1b9d8528517ea7a63.zip
Fix specs
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/refinery/blog/admin/comments_controller_spec.rb3
-rw-r--r--spec/controllers/refinery/blog/admin/posts_controller_spec.rb2
2 files changed, 3 insertions, 2 deletions
diff --git a/spec/controllers/refinery/blog/admin/comments_controller_spec.rb b/spec/controllers/refinery/blog/admin/comments_controller_spec.rb
index 4139c18..0816188 100644
--- a/spec/controllers/refinery/blog/admin/comments_controller_spec.rb
+++ b/spec/controllers/refinery/blog/admin/comments_controller_spec.rb
@@ -4,7 +4,8 @@ module Refinery
module Blog
module Admin
describe CommentsController, type: :controller do
- refinery_login_with :refinery_user
+ refinery_login_with_devise [:refinery, :superuser]
+
before do
logged_in_user.plugins = logged_in_user.plugins | %w(refinerycms_blog)
end
diff --git a/spec/controllers/refinery/blog/admin/posts_controller_spec.rb b/spec/controllers/refinery/blog/admin/posts_controller_spec.rb
index 3ff04b4..65df5b3 100644
--- a/spec/controllers/refinery/blog/admin/posts_controller_spec.rb
+++ b/spec/controllers/refinery/blog/admin/posts_controller_spec.rb
@@ -4,7 +4,7 @@ module Refinery
module Blog
module Admin
describe PostsController, type: :controller do
- refinery_login_with [:refinery, :superuser]
+ refinery_login_with_devise [:refinery, :superuser]
describe "#delete_translation" do
let!(:blog_post) { FactoryGirl.create(:blog_post) }