Merge pull request #1164 from MikeMcQuaid/style-fixups
Rubocop style fixups
This commit is contained in:
commit
7e93340073
@ -76,7 +76,9 @@ class IntegrationCommandTestCase < Homebrew::TestCase
|
||||
ENV["HOMEBREW_BREW_FILE"] = HOMEBREW_PREFIX/"bin/brew"
|
||||
ENV["HOMEBREW_INTEGRATION_TEST"] = cmd_id_from_args(args)
|
||||
ENV["HOMEBREW_TEST_TMPDIR"] = TEST_TMPDIR
|
||||
env.each_pair { |k, v| ENV[k] = v }
|
||||
env.each_pair do |k, v|
|
||||
ENV[k] = v
|
||||
end
|
||||
|
||||
read, write = IO.pipe
|
||||
begin
|
||||
|
||||
@ -67,7 +67,9 @@ class FormulaAuditorTests < Homebrew::TestCase
|
||||
|
||||
def formula_auditor(name, text, options = {})
|
||||
path = Pathname.new "#{@dir}/#{name}.rb"
|
||||
path.open("w") { |f| f.write text }
|
||||
path.open("w") do |f|
|
||||
f.write text
|
||||
end
|
||||
FormulaAuditor.new Formulary.factory(path), options
|
||||
end
|
||||
|
||||
|
||||
@ -7,6 +7,6 @@ class IntegrationCommandTestCreate < IntegrationCommandTestCase
|
||||
|
||||
formula_file = CoreTap.new.formula_dir/"testball.rb"
|
||||
assert formula_file.exist?, "The formula source should have been created"
|
||||
assert_match %(sha256 "#{TESTBALL_SHA256}"), formula_file.read
|
||||
assert_match %Q(sha256 "#{TESTBALL_SHA256}"), formula_file.read
|
||||
end
|
||||
end
|
||||
|
||||
@ -6,7 +6,9 @@ class IntegrationCommandTestCustomCommand < IntegrationCommandTestCase
|
||||
cmd = "int-test-#{rand}"
|
||||
file = "#{path}/brew-#{cmd}"
|
||||
|
||||
File.open(file, "w") { |f| f.write "#!/bin/sh\necho 'I am #{cmd}'\n" }
|
||||
File.open(file, "w") do |f|
|
||||
f.write "#!/bin/sh\necho 'I am #{cmd}'\n"
|
||||
end
|
||||
FileUtils.chmod 0777, file
|
||||
|
||||
assert_match "I am #{cmd}",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user