Skip to content
Snippets Groups Projects
Commit 56d6695b authored by Alyssa Ross's avatar Alyssa Ross
Browse files

tab: set homebrew_version in Tab.empty

parent b7e10ba2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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