aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-07-30 20:15:18 -0500
committerJack Nagel2014-07-30 20:15:18 -0500
commitfa037bbdb69a2f5642619fa3930afed770e11b96 (patch)
treebb9d6efa330881251d9233140ac19570d63dfa87
parentb94466d99e06fbb1081ef7fbd4deffc48ce0dc8d (diff)
downloadhomebrew-fa037bbdb69a2f5642619fa3930afed770e11b96.tar.bz2
Simplify BuildOptions copy tests
-rw-r--r--Library/Homebrew/test/test_build_options.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/Library/Homebrew/test/test_build_options.rb b/Library/Homebrew/test/test_build_options.rb
index b9c535f3e..d8327deac 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