Skip to content
Snippets Groups Projects
Commit 7e933400 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1164 from MikeMcQuaid/style-fixups

Rubocop style fixups
parents 4488eddf cbae10a7
No related branches found
Tags 1.2.1
No related merge requests found
......@@ -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}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment