aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJosh Hagins2016-10-19 12:35:25 -0400
committerJosh Hagins2016-10-19 12:35:47 -0400
commiteebf535beee726ccbbeeb756ade86f216a0fcbc0 (patch)
tree833668b359218c886a506fb88fca72fd0a6f4312 /Library/Homebrew
parentfef8f143e8a97141b747e9288100d4e8dbd3fc19 (diff)
downloadbrew-eebf535beee726ccbbeeb756ade86f216a0fcbc0.tar.bz2
dsl_test: unset HOMEBREW_DEVELOPER to avoid deprecation errors
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cask/test/cask/dsl_test.rb12
1 files changed, 7 insertions, 5 deletions
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