diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-24 09:00:18 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-24 09:32:54 +0100 |
commit | 2fde9d774b322fc708990675671231c64c691a33 (patch) | |
tree | f38713fcab2e54cf4ad34652042df34864608440 /railties/test | |
parent | d3c40242a58a8863cd216f6639f93df5fdb0c075 (diff) | |
download | rails-2fde9d774b322fc708990675671231c64c691a33.tar.gz rails-2fde9d774b322fc708990675671231c64c691a33.tar.bz2 rails-2fde9d774b322fc708990675671231c64c691a33.zip |
Solve some pendencies.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/paths_test.rb | 1 | ||||
-rw-r--r-- | railties/test/plugins/configuration_test.rb | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/railties/test/paths_test.rb b/railties/test/paths_test.rb index eafe7a64e1..92c7b2ba0e 100644 --- a/railties/test/paths_test.rb +++ b/railties/test/paths_test.rb @@ -3,6 +3,7 @@ require 'rails/paths' class PathsTest < ActiveSupport::TestCase def setup + File.stubs(:exists?).returns(true) @root = Rails::Paths::Root.new("/foo/bar") end diff --git a/railties/test/plugins/configuration_test.rb b/railties/test/plugins/configuration_test.rb index 09f8943af9..c59040c712 100644 --- a/railties/test/plugins/configuration_test.rb +++ b/railties/test/plugins/configuration_test.rb @@ -26,11 +26,11 @@ module PluginsTest test "plugin config merges are deep" do class Foo < Rails::Railtie ; config.foo.greetings = 'hello' ; end - class MyApp < Rails::Application + class Bar < Rails::Railtie config.foo.bar = "bar" end - assert_equal "hello", MyApp.config.foo.greetings - assert_equal "bar", MyApp.config.foo.bar + assert_equal "hello", Bar.config.foo.greetings + assert_equal "bar", Bar.config.foo.bar end test "plugin can add subscribers" do |