diff options
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/refinery/blog/admin/comments_controller_spec.rb | 3 | ||||
-rw-r--r-- | spec/controllers/refinery/blog/admin/posts_controller_spec.rb | 2 |
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) } |