tab: set homebrew_version in Tab.empty
This commit is contained in:
parent
b7e10ba239
commit
56d6695bf3
@ -168,6 +168,7 @@ class Tab < OpenStruct
|
||||
|
||||
def self.empty
|
||||
attributes = {
|
||||
"homebrew_version" => HOMEBREW_VERSION,
|
||||
"used_options" => [],
|
||||
"unused_options" => [],
|
||||
"built_as_bottle" => false,
|
||||
|
||||
@ -33,6 +33,7 @@ class TabTests < Homebrew::TestCase
|
||||
def test_defaults
|
||||
tab = Tab.empty
|
||||
|
||||
assert_equal HOMEBREW_VERSION, tab.homebrew_version
|
||||
assert_empty tab.unused_options
|
||||
assert_empty tab.used_options
|
||||
assert_nil tab.changed_files
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user