mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Warnings removed when running with 1.9.3
This commit is contained in:
parent
2ed66feae0
commit
ca219a21b6
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue