Skip to content

Commit

Permalink
Fixed deprecated call to Dependencies in plugin loader test.
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Jun 4, 2008
1 parent e660055 commit 1e4fae4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions railties/test/plugin_loader_test.rb
Expand Up @@ -108,17 +108,17 @@ def test_should_add_plugin_load_paths_to_Dependencies_load_paths

@loader.add_plugin_load_paths

assert Dependencies.load_paths.include?(File.join(plugin_fixture_path('default/stubby'), 'lib'))
assert Dependencies.load_paths.include?(File.join(plugin_fixture_path('default/acts/acts_as_chunky_bacon'), 'lib'))
assert ActiveSupport::Dependencies.load_paths.include?(File.join(plugin_fixture_path('default/stubby'), 'lib'))
assert ActiveSupport::Dependencies.load_paths.include?(File.join(plugin_fixture_path('default/acts/acts_as_chunky_bacon'), 'lib'))
end

def test_should_add_plugin_load_paths_to_Dependencies_load_once_paths
only_load_the_following_plugins! [:stubby, :acts_as_chunky_bacon]

@loader.add_plugin_load_paths

assert Dependencies.load_once_paths.include?(File.join(plugin_fixture_path('default/stubby'), 'lib'))
assert Dependencies.load_once_paths.include?(File.join(plugin_fixture_path('default/acts/acts_as_chunky_bacon'), 'lib'))
assert ActiveSupport::Dependencies.load_once_paths.include?(File.join(plugin_fixture_path('default/stubby'), 'lib'))
assert ActiveSupport::Dependencies.load_once_paths.include?(File.join(plugin_fixture_path('default/acts/acts_as_chunky_bacon'), 'lib'))
end

def test_should_add_all_load_paths_from_a_plugin_to_LOAD_PATH_array
Expand Down

0 comments on commit 1e4fae4

Please sign in to comment.