dsl_test: unset HOMEBREW_DEVELOPER to avoid deprecation errors

This commit is contained in:
Josh Hagins 2016-10-19 12:35:25 -04:00
parent fef8f143e8
commit eebf535bee

View File

@ -69,11 +69,13 @@ describe Hbc::DSL do
end end
it "may use deprecated DSL version hash syntax" do it "may use deprecated DSL version hash syntax" do
test_cask = Hbc.load("with-dsl-version") with_environment "HOMEBREW_DEVELOPER" => nil do
test_cask.token.must_equal "with-dsl-version" test_cask = Hbc.load("with-dsl-version")
test_cask.url.to_s.must_equal "http://example.com/TestCask.dmg" test_cask.token.must_equal "with-dsl-version"
test_cask.homepage.must_equal "http://example.com/" test_cask.url.to_s.must_equal "http://example.com/TestCask.dmg"
test_cask.version.to_s.must_equal "1.2.3" test_cask.homepage.must_equal "http://example.com/"
test_cask.version.to_s.must_equal "1.2.3"
end
end end
end end