diff options
author | José Valim <jose.valim@gmail.com> | 2011-04-15 19:17:58 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-04-15 19:17:58 +0200 |
commit | d84b2f37d018621aea99bfe30611ab75a02a291a (patch) | |
tree | 49d0ff343890818bbebec687733fa5aa18497899 /railties/test | |
parent | 2fe70c180351e87801179e8404d1582d7da25645 (diff) | |
download | rails-d84b2f37d018621aea99bfe30611ab75a02a291a.tar.gz rails-d84b2f37d018621aea99bfe30611ab75a02a291a.tar.bz2 rails-d84b2f37d018621aea99bfe30611ab75a02a291a.zip |
Fix tests.
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/railties/engine_test.rb | 4 | ||||
-rw-r--r-- | railties/test/railties/shared_tests.rb | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/railties/test/railties/engine_test.rb b/railties/test/railties/engine_test.rb index f7423cd566..530863fd08 100644 --- a/railties/test/railties/engine_test.rb +++ b/railties/test/railties/engine_test.rb @@ -199,6 +199,8 @@ module RailtiesTest end test "it allows to set asset_path" do + add_to_config("config.assets.enabled = false") + @plugin.write "lib/bukkits.rb", <<-RUBY class Bukkits class Engine < ::Rails::Engine @@ -206,7 +208,6 @@ module RailtiesTest end RUBY - @plugin.write "config/routes.rb", <<-RUBY Bukkits::Engine.routes.draw do match "/foo" => "foo#index" @@ -774,6 +775,7 @@ module RailtiesTest test "ensure that engine properly sets assets directories" do add_to_config("config.action_dispatch.show_exceptions = false") add_to_config("config.serve_static_assets = true") + add_to_config("config.assets.enabled = false") @plugin.write "lib/bukkits.rb", <<-RUBY module Bukkits diff --git a/railties/test/railties/shared_tests.rb b/railties/test/railties/shared_tests.rb index 5cd1818f4b..46bab2a47b 100644 --- a/railties/test/railties/shared_tests.rb +++ b/railties/test/railties/shared_tests.rb @@ -32,13 +32,13 @@ module RailtiesTest end end - def test_copying_assets + def test_copying_public @plugin.write "public/javascripts/foo.js", "doSomething()" @plugin.write "public/stylesheets/foo.css", "h1 { font-size: 10000px }" @plugin.write "public/images/img.png", "" Dir.chdir(app_path) do - `rake bukkits:install:assets --trace` + `rake bukkits:install:public --trace` assert File.exists?(app_path("public/bukkits/javascripts/foo.js")) assert_equal "doSomething()\n", File.read(app_path("public/bukkits/javascripts/foo.js")) |