aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-04-22 23:25:48 +0200
committerJosé Valim <jose.valim@gmail.com>2011-04-22 23:25:52 +0200
commit013d9016ca2a12f4429b2f0b058283fb75b73cd9 (patch)
tree615d07af68a4ceec0dbb16d9ab0c8aa95c26d991
parent5bed6494d49506223dc3b6652858c21487776a02 (diff)
downloadrails-013d9016ca2a12f4429b2f0b058283fb75b73cd9.tar.gz
rails-013d9016ca2a12f4429b2f0b058283fb75b73cd9.tar.bz2
rails-013d9016ca2a12f4429b2f0b058283fb75b73cd9.zip
Use .erb in the test.
-rw-r--r--railties/test/railties/shared_tests.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/railties/shared_tests.rb b/railties/test/railties/shared_tests.rb
index b2b18938ae..e975950b85 100644
--- a/railties/test/railties/shared_tests.rb
+++ b/railties/test/railties/shared_tests.rb
@@ -11,7 +11,7 @@ module RailtiesTest
end
def test_serving_sprockets_assets
- @plugin.write "app/assets/javascripts/engine.js.coffee", "square = (x) -> x * x"
+ @plugin.write "app/assets/javascripts/engine.js.erb", "<%= :alert %>();"
boot_rails
require 'rack/test'
@@ -19,7 +19,7 @@ module RailtiesTest
extend Rack::Test::Methods
get "/assets/engine.js"
- assert_match "square = function(x) {", last_response.body
+ assert_match "alert();", last_response.body
end
def test_copying_migrations