Skip to content
Browse files

remove method warnings

  • Loading branch information...
1 parent bea25dc commit 5ec715479fd61924ba3371417c5bbb8874113971 @salicio salicio committed
Showing with 3 additions and 3 deletions.
  1. +1 −1 app_generators/togify/togify_generator.rb
  2. +2 −2 test/test_togify_generator.rb
View
2 app_generators/togify/togify_generator.rb
@@ -151,7 +151,7 @@ def tarball_unpack(file, plugin)
rescue Exception => e
logger.error "There has been a problem trying to unpack the #{plugin} tarball downloaded from github. Remove the changes made on your app by togify and try again. Sorry for the inconveniences."
- exit -1
+ exit(-1)
end
end
View
4 test/test_togify_generator.rb
@@ -27,7 +27,7 @@ def test_generator_without_options
assert_generated_file "config/routes.rb" do |body|
assert_has_plugin_routes body, plugin
end
- assert_remote_origin_of_plugin (plugin, "git://github.com/tog/(.*).git")
+ assert_remote_origin_of_plugin(plugin, "git://github.com/tog/(.*).git")
}
generated_migration = Dir.glob("#{APP_ROOT}/db/migrate/*_integrate_tog.rb")[0]
assert generated_migration, "should be a IntegrateTog migration in the togified app"
@@ -40,7 +40,7 @@ def test_generator_without_options
def test_generator_with_dev_repositories
run_generator('togify', [APP_ROOT], sources, {:development => true})
@plugins.each{|plugin|
- assert_remote_origin_of_plugin (plugin, "git@github.com:tog/(.*).git")
+ assert_remote_origin_of_plugin(plugin, "git@github.com:tog/(.*).git")
}
end

0 comments on commit 5ec7154

Please sign in to comment.
Something went wrong with that request. Please try again.