From eebf535beee726ccbbeeb756ade86f216a0fcbc0 Mon Sep 17 00:00:00 2001 From: Josh Hagins Date: Wed, 19 Oct 2016 12:35:25 -0400 Subject: dsl_test: unset HOMEBREW_DEVELOPER to avoid deprecation errors --- Library/Homebrew/cask/test/cask/dsl_test.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/cask/test/cask/dsl_test.rb b/Library/Homebrew/cask/test/cask/dsl_test.rb index 2d51a20f1..ecd1cb72f 100644 --- a/Library/Homebrew/cask/test/cask/dsl_test.rb +++ b/Library/Homebrew/cask/test/cask/dsl_test.rb @@ -69,11 +69,13 @@ describe Hbc::DSL do end it "may use deprecated DSL version hash syntax" do - test_cask = Hbc.load("with-dsl-version") - test_cask.token.must_equal "with-dsl-version" - test_cask.url.to_s.must_equal "http://example.com/TestCask.dmg" - test_cask.homepage.must_equal "http://example.com/" - test_cask.version.to_s.must_equal "1.2.3" + with_environment "HOMEBREW_DEVELOPER" => nil do + test_cask = Hbc.load("with-dsl-version") + test_cask.token.must_equal "with-dsl-version" + test_cask.url.to_s.must_equal "http://example.com/TestCask.dmg" + test_cask.homepage.must_equal "http://example.com/" + test_cask.version.to_s.must_equal "1.2.3" + end end end -- cgit v1.2.3