diff options
author | Joshua Peek <josh@joshpeek.com> | 2010-01-25 16:33:29 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2010-01-25 16:33:29 -0600 |
commit | 3086dbd8d0705bc8e5e45cb04d9f8191f85a2685 (patch) | |
tree | b811ea85d66fa5557fff0a61493e8a755efb050a /railties/test/plugins | |
parent | 02908e11425069e5b91cbf8ec3c8344a58493ef8 (diff) | |
download | rails-3086dbd8d0705bc8e5e45cb04d9f8191f85a2685.tar.gz rails-3086dbd8d0705bc8e5e45cb04d9f8191f85a2685.tar.bz2 rails-3086dbd8d0705bc8e5e45cb04d9f8191f85a2685.zip |
Failing test for plugin init requiring another plugin lib file
Diffstat (limited to 'railties/test/plugins')
-rw-r--r-- | railties/test/plugins/vendored_test.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/railties/test/plugins/vendored_test.rb b/railties/test/plugins/vendored_test.rb index c14178ec66..940648a0b6 100644 --- a/railties/test/plugins/vendored_test.rb +++ b/railties/test/plugins/vendored_test.rb @@ -382,5 +382,22 @@ YAML boot_rails assert_equal [:c, :a, :b], $arr end + + test "can require lib file from a different plugin" do + plugin "foo", "require 'bar'" do |plugin| + plugin.write "lib/foo.rb", "$foo = true" + end + + plugin "bar", "require 'foo'" do |plugin| + plugin.write "lib/bar.rb", "$bar = true" + end + + add_to_config "config.plugins = [:foo, :bar]" + + boot_rails + + assert $foo + assert $bar + end end end |