aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers
diff options
context:
space:
mode:
authorPhilip Arndt <git@arndt.io>2014-11-12 22:10:50 -0600
committerPhilip Arndt <git@arndt.io>2014-11-12 22:10:50 -0600
commit3e9b604d1bdc9c3f1475a35c658d425a85d4a8c3 (patch)
treefa04a8b8c35045f9028b7eda088a8b28658d1c15 /spec/controllers
parent8a5bf4f80b93627cc777313d6a6091f1110999c7 (diff)
downloadrefinerycms-blog-3e9b604d1bdc9c3f1475a35c658d425a85d4a8c3.tar.gz
refinerycms-blog-3e9b604d1bdc9c3f1475a35c658d425a85d4a8c3.tar.bz2
refinerycms-blog-3e9b604d1bdc9c3f1475a35c658d425a85d4a8c3.zip
Give the test user access to refinerycms_blog extension.
Fixes #392
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/refinery/blog/admin/comments_controller_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/controllers/refinery/blog/admin/comments_controller_spec.rb b/spec/controllers/refinery/blog/admin/comments_controller_spec.rb
index 9346ff5..5a439f1 100644
--- a/spec/controllers/refinery/blog/admin/comments_controller_spec.rb
+++ b/spec/controllers/refinery/blog/admin/comments_controller_spec.rb
@@ -5,6 +5,9 @@ module Refinery
module Admin
describe CommentsController, type: :controller do
refinery_login_with :refinery_user
+ before do
+ logged_in_user.plugins = logged_in_user.plugins | %w(refinerycms_blog)
+ end
describe "#index" do
let!(:comment) { FactoryGirl.create(:blog_comment) }