Skip to content

Commit

Permalink
Fix failing specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ugisozols committed May 7, 2012
1 parent b076e2b commit b786383
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -10,8 +10,10 @@
end

it "loads plugins" do
user_plugin = Refinery::Plugins.registered.detect { |plugin| plugin.name == "refinery_users" }
plugins = Refinery::Plugins.new
plugins.should_receive(:in_menu).once{ [] }
plugins << user_plugin
plugins.should_receive(:in_menu).once{ [user_plugin] }

Refinery::Plugins.should_receive(:registered).at_least(1).times{ plugins }
get :new
Expand Down
2 changes: 1 addition & 1 deletion core/lib/refinery/core/engine.rb
Expand Up @@ -57,7 +57,7 @@ def refinery_inclusion!
plugin.version = Refinery.version
plugin.hide_from_menu = true
plugin.always_allow_access = true
plugin.menu_match = /refinery\/(refinery_core)$/
plugin.menu_match = /refinery\/(refinery_)?core$/
end
end

Expand Down

0 comments on commit b786383

Please sign in to comment.