mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Warnings removed when running with 1.9.3
This commit is contained in:
@@ -6,7 +6,7 @@ namespace :assets do
|
||||
groups = ENV['RAILS_GROUPS'] || 'assets'
|
||||
args = [$0, task,"RAILS_ENV=#{env}","RAILS_GROUPS=#{groups}"]
|
||||
args << "--trace" if Rake.application.options.trace
|
||||
ruby *args
|
||||
ruby(*args)
|
||||
end
|
||||
|
||||
# We are currently running with no explicit bundler group
|
||||
|
||||
@@ -65,7 +65,7 @@ module Rails
|
||||
|
||||
begin
|
||||
"#{options[:orm].to_s.classify}::Generators::ActiveModel".constantize
|
||||
rescue NameError => e
|
||||
rescue NameError
|
||||
Rails::Generators::ActiveModel
|
||||
end
|
||||
end
|
||||
|
||||
@@ -13,7 +13,7 @@ class AssetsGeneratorTest < Rails::Generators::TestCase
|
||||
end
|
||||
|
||||
def test_skipping_assets
|
||||
content = run_generator ["posts", "--no-stylesheets", "--no-javascripts"]
|
||||
run_generator ["posts", "--no-stylesheets", "--no-javascripts"]
|
||||
assert_no_file "app/assets/javascripts/posts.js"
|
||||
assert_no_file "app/assets/stylesheets/posts.css"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user