提交 1774ec74 编写于 作者: S Santiago Pastorino

Merge pull request #3266 from arunagw/warnings_removed

Warnings removed when running with 1.9.3
......@@ -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 @@ def orm_class
begin
"#{options[:orm].to_s.classify}::Generators::ActiveModel".constantize
rescue NameError => e
rescue NameError
Rails::Generators::ActiveModel
end
end
......
......@@ -13,7 +13,7 @@ def test_assets
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册