Upgrade to Rails 2.2.0
As a side benefit, fix an (non-user-visible) bug in display_s5(). Also fixed a bug where removing orphaned pages did not expire cached summary pages.
This commit is contained in:
parent
39348c65c2
commit
7600aef48b
827 changed files with 123652 additions and 11027 deletions
12
vendor/rails/railties/test/plugin_loader_test.rb
vendored
12
vendor/rails/railties/test/plugin_loader_test.rb
vendored
|
@ -48,16 +48,16 @@ uses_mocha "Plugin Loader Tests" do
|
|||
end
|
||||
|
||||
def test_should_find_all_availble_plugins_and_return_as_all_plugins
|
||||
assert_plugins [:stubby, :plugin_with_no_lib_dir, :acts_as_chunky_bacon, :a], @loader.all_plugins.reverse, @failure_tip
|
||||
assert_plugins [:stubby, :plugin_with_no_lib_dir, :gemlike, :acts_as_chunky_bacon, :a], @loader.all_plugins.reverse, @failure_tip
|
||||
end
|
||||
|
||||
def test_should_return_all_plugins_as_plugins_when_registered_plugin_list_is_untouched
|
||||
assert_plugins [:a, :acts_as_chunky_bacon, :plugin_with_no_lib_dir, :stubby], @loader.plugins, @failure_tip
|
||||
assert_plugins [:a, :acts_as_chunky_bacon, :gemlike, :plugin_with_no_lib_dir, :stubby], @loader.plugins, @failure_tip
|
||||
end
|
||||
|
||||
def test_should_return_all_plugins_as_plugins_when_registered_plugin_list_is_nil
|
||||
@configuration.plugins = nil
|
||||
assert_plugins [:a, :acts_as_chunky_bacon, :plugin_with_no_lib_dir, :stubby], @loader.plugins, @failure_tip
|
||||
assert_plugins [:a, :acts_as_chunky_bacon, :gemlike, :plugin_with_no_lib_dir, :stubby], @loader.plugins, @failure_tip
|
||||
end
|
||||
|
||||
def test_should_return_specific_plugins_named_in_config_plugins_array_if_set
|
||||
|
@ -74,17 +74,17 @@ uses_mocha "Plugin Loader Tests" do
|
|||
|
||||
def test_should_load_all_plugins_in_natural_order_when_all_is_used
|
||||
only_load_the_following_plugins! [:all]
|
||||
assert_plugins [:a, :acts_as_chunky_bacon, :plugin_with_no_lib_dir, :stubby], @loader.plugins, @failure_tip
|
||||
assert_plugins [:a, :acts_as_chunky_bacon, :gemlike, :plugin_with_no_lib_dir, :stubby], @loader.plugins, @failure_tip
|
||||
end
|
||||
|
||||
def test_should_load_specified_plugins_in_order_and_then_all_remaining_plugins_when_all_is_used
|
||||
only_load_the_following_plugins! [:stubby, :acts_as_chunky_bacon, :all]
|
||||
assert_plugins [:stubby, :acts_as_chunky_bacon, :a, :plugin_with_no_lib_dir], @loader.plugins, @failure_tip
|
||||
assert_plugins [:stubby, :acts_as_chunky_bacon, :a, :gemlike, :plugin_with_no_lib_dir], @loader.plugins, @failure_tip
|
||||
end
|
||||
|
||||
def test_should_be_able_to_specify_loading_of_plugins_loaded_after_all
|
||||
only_load_the_following_plugins! [:stubby, :all, :acts_as_chunky_bacon]
|
||||
assert_plugins [:stubby, :a, :plugin_with_no_lib_dir, :acts_as_chunky_bacon], @loader.plugins, @failure_tip
|
||||
assert_plugins [:stubby, :a, :gemlike, :plugin_with_no_lib_dir, :acts_as_chunky_bacon], @loader.plugins, @failure_tip
|
||||
end
|
||||
|
||||
def test_should_accept_plugin_names_given_as_strings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue