Commit 36e5b9ab7b43c506bcc0c0291414ea62ada199b7

Authored by Antonio Terceiro
1 parent 34de9463

Fix gross typo - word completion broke my legs

lib/noosfero/plugin/manager.rb
... ... @@ -5,7 +5,7 @@ class Noosfero::Plugin::Manager
5 5  
6 6 def initialize(environment, context)
7 7 @environment = environment
8   - @constantize = context
  8 + @context = context
9 9 end
10 10  
11 11 delegate :each, :to => :enabled_plugins
... ...
test/unit/plugin_manager_test.rb
... ... @@ -14,6 +14,11 @@ class PluginManagerTest < ActiveSupport::TestCase
14 14 attr_reader :environment
15 15 attr_reader :manager
16 16  
  17 + should 'give access to environment and context' do
  18 + assert_same @environment, @manager.environment
  19 + assert_same @controller, @manager.context
  20 + end
  21 +
17 22 should 'return the intersection between environment\'s enabled plugins and system available plugins' do
18 23 class Plugin1 < Noosfero::Plugin; end;
19 24 class Plugin2 < Noosfero::Plugin; end;
... ...