Skip to content
This repository
Browse code

Merge branch 'master' of git://github.com/rails/rails

Conflicts:
	railties/test/railties/plugin_test.rb
  • Loading branch information...
commit a89c8cb5289d5af32352ed46eca74138685a3259 2 parents 49be331 + 3086dbd
José Valim josevalim authored

Showing 1 changed file with 17 additions and 0 deletions. Show diff stats Hide diff stats

  1. +17 0 railties/test/railties/plugin_ordering_test.rb
17 railties/test/railties/plugin_ordering_test.rb
@@ -51,5 +51,22 @@ def boot_rails
51 51 boot_rails
52 52 assert_equal [:c, :a, :b], $arr
53 53 end
  54 +
  55 + test "can require lib file from a different plugin" do
  56 + plugin "foo", "require 'bar'" do |plugin|
  57 + plugin.write "lib/foo.rb", "$foo = true"
  58 + end
  59 +
  60 + plugin "bar", "require 'foo'" do |plugin|
  61 + plugin.write "lib/bar.rb", "$bar = true"
  62 + end
  63 +
  64 + add_to_config "config.plugins = [:foo, :bar]"
  65 +
  66 + boot_rails
  67 +
  68 + assert $foo
  69 + assert $bar
  70 + end
54 71 end
55 72 end

0 comments on commit a89c8cb

Please sign in to comment.
Something went wrong with that request. Please try again.