mirror of
https://github.com/github/rails.git
synced 2026-01-08 22:27:59 -05:00
this test also
This commit is contained in:
@@ -10,17 +10,6 @@ module RailtiesTest
|
||||
@app ||= Rails.application
|
||||
end
|
||||
|
||||
def test_serving_sprockets_assets
|
||||
@plugin.write "app/assets/javascripts/engine.js.erb", "<%= :alert %>();"
|
||||
|
||||
boot_rails
|
||||
require 'rack/test'
|
||||
extend Rack::Test::Methods
|
||||
|
||||
get "/assets/engine.js"
|
||||
assert_match "alert()", last_response.body
|
||||
end
|
||||
|
||||
def test_rake_environment_can_be_called_in_the_engine_or_plugin
|
||||
boot_rails
|
||||
|
||||
|
||||
Reference in New Issue
Block a user