mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Ruby 1.9 compat: remove constants from block parameters
[#1002 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
This commit is contained in:
parent
d5893a517f
commit
07eb9ffd15
2 changed files with 3 additions and 2 deletions
|
@ -32,6 +32,7 @@ Rake::TestTask.new(:test_action_pack) { |t|
|
||||||
t.test_files=Dir.glob( "test/[cft]*/**/*_test.rb" ).sort
|
t.test_files=Dir.glob( "test/[cft]*/**/*_test.rb" ).sort
|
||||||
# t.pattern = 'test/*/*_test.rb'
|
# t.pattern = 'test/*/*_test.rb'
|
||||||
t.verbose = true
|
t.verbose = true
|
||||||
|
t.warning = true
|
||||||
}
|
}
|
||||||
|
|
||||||
desc 'ActiveRecord Integration Tests'
|
desc 'ActiveRecord Integration Tests'
|
||||||
|
|
|
@ -181,10 +181,10 @@ ARGV.options do |opts|
|
||||||
|
|
||||||
opts.on(" Options:")
|
opts.on(" Options:")
|
||||||
|
|
||||||
opts.on("-p", "--port=number", Integer, "Starting port number (default: #{OPTIONS[:port]})") { |OPTIONS[:port]| }
|
opts.on("-p", "--port=number", Integer, "Starting port number (default: #{OPTIONS[:port]})") { |v| OPTIONS[:port] = v }
|
||||||
|
|
||||||
if spawner_class.can_bind_to_custom_address?
|
if spawner_class.can_bind_to_custom_address?
|
||||||
opts.on("-a", "--address=ip", String, "Bind to IP address (default: #{OPTIONS[:address]})") { |OPTIONS[:address]| }
|
opts.on("-a", "--address=ip", String, "Bind to IP address (default: #{OPTIONS[:address]})") { |v| OPTIONS[:address] = v }
|
||||||
end
|
end
|
||||||
|
|
||||||
opts.on("-p", "--port=number", Integer, "Starting port number (default: #{OPTIONS[:port]})") { |v| OPTIONS[:port] = v }
|
opts.on("-p", "--port=number", Integer, "Starting port number (default: #{OPTIONS[:port]})") { |v| OPTIONS[:port] = v }
|
||||||
|
|
Loading…
Reference in a new issue