diff options
| author | Mike McQuaid | 2016-09-19 16:04:32 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-09-19 16:04:32 +0100 |
| commit | c9d9e54de6c96ae440506dccb4cac4c77ad408ce (patch) | |
| tree | d9f50b6c9acea6121a73f602fd9bd3230e804cb5 /Library/Homebrew/test | |
| parent | c45119de75e70f32e3b3fdcccb210a88282a2f26 (diff) | |
| download | brew-c9d9e54de6c96ae440506dccb4cac4c77ad408ce.tar.bz2 | |
Fix `brew style` from #971.
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_formula.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/test/test_formula.rb b/Library/Homebrew/test/test_formula.rb index 1da60c214..dcb3e3349 100644 --- a/Library/Homebrew/test/test_formula.rb +++ b/Library/Homebrew/test/test_formula.rb @@ -388,7 +388,7 @@ class FormulaTests < Homebrew::TestCase def test_alias_paths_with_build_options alias_path = CoreTap.instance.alias_dir/"another_name" - f = formula(:alias_path => alias_path) { url "foo-1.0" } + f = formula(alias_path: alias_path) { url "foo-1.0" } f.build = BuildOptions.new({}, {}) assert_equal alias_path, f.alias_path assert_nil f.installed_alias_path @@ -397,8 +397,8 @@ class FormulaTests < Homebrew::TestCase def test_alias_paths_with_tab_with_non_alias_source_path alias_path = CoreTap.instance.alias_dir/"another_name" source_path = CoreTap.instance.formula_dir/"another_other_name" - f = formula(:alias_path => alias_path) { url "foo-1.0" } - f.build = Tab.new(:source => { "path" => source_path.to_s }) + f = formula(alias_path: alias_path) { url "foo-1.0" } + f.build = Tab.new(source: { "path" => source_path.to_s }) assert_equal alias_path, f.alias_path assert_nil f.installed_alias_path end @@ -406,8 +406,8 @@ class FormulaTests < Homebrew::TestCase def test_alias_paths_with_tab_with_alias_source_path alias_path = CoreTap.instance.alias_dir/"another_name" source_path = CoreTap.instance.alias_dir/"another_other_name" - f = formula(:alias_path => alias_path) { url "foo-1.0" } - f.build = Tab.new(:source => { "path" => source_path.to_s }) + f = formula(alias_path: alias_path) { url "foo-1.0" } + f.build = Tab.new(source: { "path" => source_path.to_s }) assert_equal alias_path, f.alias_path assert_equal source_path.to_s, f.installed_alias_path end |
