提交 3086dbd8 编写于 作者: J Joshua Peek

Failing test for plugin init requiring another plugin lib file

上级 02908e11
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册