mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Sort the results to remove platform dependent test failures
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8915 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
44c169397a
commit
5b5d236792
1 changed files with 2 additions and 2 deletions
|
@ -47,12 +47,12 @@ uses_mocha "Plugin Locator Tests" do
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_should_return_all_plugins_found_under_the_set_plugin_paths
|
def test_should_return_all_plugins_found_under_the_set_plugin_paths
|
||||||
assert_equal ["a", "acts_as_chunky_bacon", "plugin_with_no_lib_dir", "stubby"], @locator.plugins.map(&:name)
|
assert_equal ["a", "acts_as_chunky_bacon", "plugin_with_no_lib_dir", "stubby"].sort, @locator.plugins.map(&:name).sort
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_should_find_plugins_only_under_the_plugin_paths_set_in_configuration
|
def test_should_find_plugins_only_under_the_plugin_paths_set_in_configuration
|
||||||
@configuration.plugin_paths = [File.join(plugin_fixture_root_path, "default")]
|
@configuration.plugin_paths = [File.join(plugin_fixture_root_path, "default")]
|
||||||
assert_equal ["acts_as_chunky_bacon", "plugin_with_no_lib_dir", "stubby"], @locator.plugins.map(&:name)
|
assert_equal ["acts_as_chunky_bacon", "plugin_with_no_lib_dir", "stubby"].sort, @locator.plugins.map(&:name).sort
|
||||||
|
|
||||||
@configuration.plugin_paths = [File.join(plugin_fixture_root_path, "alternate")]
|
@configuration.plugin_paths = [File.join(plugin_fixture_root_path, "alternate")]
|
||||||
assert_equal ["a"], @locator.plugins.map(&:name)
|
assert_equal ["a"], @locator.plugins.map(&:name)
|
||||||
|
|
Loading…
Reference in a new issue