mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
14 lines
326 B
Ruby
14 lines
326 B
Ruby
require "testing_env"
|
|
|
|
class KegOnlyReasonTests < Homebrew::TestCase
|
|
def test_to_s_explanation
|
|
r = KegOnlyReason.new :provided_by_osx, "test"
|
|
assert_equal "test", r.to_s
|
|
end
|
|
|
|
def test_to_s_no_explanation
|
|
r = KegOnlyReason.new :provided_by_osx, ""
|
|
assert_match(/^OS X already provides/, r.to_s)
|
|
end
|
|
end
|