Permalink
Browse files

Warnings removed when running with 1.9.3

  • Loading branch information...
1 parent 2ed66fe commit ca219a21b60ea20868deab20afaa0335d32f1c17 @arunagw committed Oct 9, 2011
@@ -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

0 comments on commit ca219a2

Please sign in to comment.