mirror of
https://github.com/github/rails.git
synced 2026-01-07 22:04:07 -05:00
more
This commit is contained in:
@@ -720,22 +720,6 @@ module RailtiesTest
|
||||
App's bar partial
|
||||
RUBY
|
||||
|
||||
@plugin.write "app/assets/javascripts/foo.js", <<-RUBY
|
||||
// Bukkit's foo js
|
||||
RUBY
|
||||
|
||||
app_file "app/assets/javascripts/foo.js", <<-RUBY
|
||||
// App's foo js
|
||||
RUBY
|
||||
|
||||
@blog.write "app/assets/javascripts/bar.js", <<-RUBY
|
||||
// Blog's bar js
|
||||
RUBY
|
||||
|
||||
app_file "app/assets/javascripts/bar.js", <<-RUBY
|
||||
// App's bar js
|
||||
RUBY
|
||||
|
||||
add_to_config("config.railties_order = [:all, :main_app, Blog::Engine]")
|
||||
|
||||
boot_rails
|
||||
@@ -747,12 +731,6 @@ module RailtiesTest
|
||||
get("/bar")
|
||||
assert_equal "App's bar partial", last_response.body.strip
|
||||
|
||||
get("/assets/foo.js")
|
||||
assert_equal "// Bukkit's foo js\n;", last_response.body.strip
|
||||
|
||||
get("/assets/bar.js")
|
||||
assert_equal "// App's bar js\n;", last_response.body.strip
|
||||
|
||||
# ensure that railties are not added twice
|
||||
railties = Rails.application.ordered_railties.map(&:class)
|
||||
assert_equal railties, railties.uniq
|
||||
|
||||
Reference in New Issue
Block a user