Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Failing test for plugin init requiring another plugin lib file

  • Loading branch information...
commit 3086dbd8d0705bc8e5e45cb04d9f8191f85a2685 1 parent 02908e1
@josh josh authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 railties/test/plugins/vendored_test.rb
View
17 railties/test/plugins/vendored_test.rb
@@ -382,5 +382,22 @@ def boot_rails
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
Please sign in to comment.
Something went wrong with that request. Please try again.