tab: set homebrew_version in Tab.empty

This commit is contained in:
Alyssa Ross 2017-01-04 00:56:06 +00:00
parent b7e10ba239
commit 56d6695bf3
2 changed files with 2 additions and 0 deletions

View File

@ -168,6 +168,7 @@ class Tab < OpenStruct
def self.empty
attributes = {
"homebrew_version" => HOMEBREW_VERSION,
"used_options" => [],
"unused_options" => [],
"built_as_bottle" => false,

View File

@ -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