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
|
def self.empty
|
||||||
attributes = {
|
attributes = {
|
||||||
|
"homebrew_version" => HOMEBREW_VERSION,
|
||||||
"used_options" => [],
|
"used_options" => [],
|
||||||
"unused_options" => [],
|
"unused_options" => [],
|
||||||
"built_as_bottle" => false,
|
"built_as_bottle" => false,
|
||||||
|
|||||||
@ -33,6 +33,7 @@ class TabTests < Homebrew::TestCase
|
|||||||
def test_defaults
|
def test_defaults
|
||||||
tab = Tab.empty
|
tab = Tab.empty
|
||||||
|
|
||||||
|
assert_equal HOMEBREW_VERSION, tab.homebrew_version
|
||||||
assert_empty tab.unused_options
|
assert_empty tab.unused_options
|
||||||
assert_empty tab.used_options
|
assert_empty tab.used_options
|
||||||
assert_nil tab.changed_files
|
assert_nil tab.changed_files
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user