aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Arndt <git@arndt.io>2014-11-13 07:47:46 -0600
committerPhilip Arndt <git@arndt.io>2014-11-13 07:47:46 -0600
commit59fab9cdc5074df4ee2cead500e143f750b4dcf9 (patch)
tree3c1b926f6646ef55551162a322f181ee1bf23c9b
parent9fa55fa535ea7f20e31b42dd2a67c62fc5ee280e (diff)
parent3e9b604d1bdc9c3f1475a35c658d425a85d4a8c3 (diff)
downloadrefinerycms-blog-59fab9cdc5074df4ee2cead500e143f750b4dcf9.tar.gz
refinerycms-blog-59fab9cdc5074df4ee2cead500e143f750b4dcf9.tar.bz2
refinerycms-blog-59fab9cdc5074df4ee2cead500e143f750b4dcf9.zip
Merge pull request #394 from refinery/bugfix/failing-specs
Give the test user access to refinerycms_blog extension.
-rw-r--r--lib/refinery/blog/engine.rb2
-rw-r--r--spec/controllers/refinery/blog/admin/comments_controller_spec.rb3
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/refinery/blog/engine.rb b/lib/refinery/blog/engine.rb
index 95952d0..7b29466 100644
--- a/lib/refinery/blog/engine.rb
+++ b/lib/refinery/blog/engine.rb
@@ -10,7 +10,7 @@ module Refinery
plugin.pathname = root
plugin.name = "refinerycms_blog"
plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.blog_admin_posts_path }
- plugin.menu_match = /refinery\/blog\/?(posts|comments|categories)?/
+ plugin.menu_match = %r{refinery/blog/?(posts|comments|categories)?}
end
end
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) }