Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Warnings removed for using shadow variable.

  • Loading branch information...
commit 34618e6697475bca8b4bcfaaa2d55a99e78c031a 1 parent 0a38e2a
@arunagw arunagw authored
View
4 railties/lib/rails/generators/actions.rb
@@ -119,8 +119,8 @@ def git(commands={})
if commands.is_a?(Symbol)
run "git #{commands}"
else
- commands.each do |command, options|
- run "git #{command} #{options}"
+ commands.each do |cmd, options|
+ run "git #{cmd} #{options}"
end
end
end
View
4 railties/test/generators/shared_generator_tests.rb
@@ -191,11 +191,11 @@ def test_builder_option_with_tweak_plugin_builder
end
def test_builder_option_with_http
- path = "http://gist.github.com/103208.txt"
+ url = "http://gist.github.com/103208.txt"
template = "class #{builder_class}; end"
template.instance_eval "def read; self; end" # Make the string respond to read
- generator([destination_root], :builder => path).expects(:open).with(path, 'Accept' => 'application/x-thor-template').returns(template)
+ generator([destination_root], :builder => url).expects(:open).with(url, 'Accept' => 'application/x-thor-template').returns(template)
quietly { generator.invoke_all }
default_files.each{ |path| assert_no_file(path) }
Please sign in to comment.
Something went wrong with that request. Please try again.