diff options
| author | Jack Nagel | 2015-02-21 18:32:52 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2015-02-21 18:44:04 -0500 | 
| commit | a37c0e73133177baf07614820d5c790f4d695849 (patch) | |
| tree | c84a582f37596f2677eaf99a913c831f8e3e33a9 /Library/Homebrew/test | |
| parent | 23d3f3077c121216de3295158948bdb25e38f626 (diff) | |
| download | homebrew-a37c0e73133177baf07614820d5c790f4d695849.tar.bz2 | |
Switch to string keys
The OpenStruct initializer accepts both symbols and strings, but any
nested hashes will only allow access via string keys, so let's always
construct the object with strings for consistency.
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_tab.rb | 20 | 
1 files changed, 10 insertions, 10 deletions
diff --git a/Library/Homebrew/test/test_tab.rb b/Library/Homebrew/test/test_tab.rb index 1ffa7fbb0..e6116b057 100644 --- a/Library/Homebrew/test/test_tab.rb +++ b/Library/Homebrew/test/test_tab.rb @@ -8,16 +8,16 @@ class TabTests < Homebrew::TestCase      @unused = Options.create(%w(--with-baz --without-qux))      @tab = Tab.new({ -      :used_options       => @used.as_flags, -      :unused_options     => @unused.as_flags, -      :built_as_bottle    => false, -      :poured_from_bottle => true, -      :tapped_from        => "Homebrew/homebrew", -      :time               => nil, -      :HEAD               => TEST_SHA1, -      :compiler           => "clang", -      :stdlib             => "libcxx", -      :source             => { :path => nil }, +      "used_options"       => @used.as_flags, +      "unused_options"     => @unused.as_flags, +      "built_as_bottle"    => false, +      "poured_from_bottle" => true, +      "tapped_from"        => "Homebrew/homebrew", +      "time"               => nil, +      "HEAD"               => TEST_SHA1, +      "compiler"           => "clang", +      "stdlib"             => "libcxx", +      "source"             => { "path" => nil },      })    end  | 
