From 0a605cbf8b6f20b8219884b1392ab4f01dfa96d2 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 30 Jul 2014 20:15:18 -0500 Subject: [PATCH] Simplify BuildOptions copy tests --- Library/Homebrew/test/test_build_options.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Library/Homebrew/test/test_build_options.rb b/Library/Homebrew/test/test_build_options.rb index b9c535f3e9..d8327deac4 100644 --- a/Library/Homebrew/test/test_build_options.rb +++ b/Library/Homebrew/test/test_build_options.rb @@ -75,16 +75,12 @@ class BuildOptionsTests < Homebrew::TestCase def test_copies_do_not_share_underlying_options orig = BuildOptions.new [] copy = orig.dup - copy.add 'foo' - assert_empty orig - assert_equal 1, copy.count + refute_same orig.args, copy.args end def test_copies_do_not_share_underlying_args orig = BuildOptions.new [] copy = orig.dup - copy.args << Option.new('foo') - assert_empty orig.args - assert_equal 1, copy.args.count + refute_same orig.args, copy.args end end