Use better assertions
This commit is contained in:
parent
f8b4c3603f
commit
dd3d8a9060
@ -22,7 +22,7 @@ class LanguageModuleDependencyTests < Homebrew::TestCase
|
|||||||
import_name = "bar"
|
import_name = "bar"
|
||||||
l = LanguageModuleDependency.new(:python, mod_name, import_name)
|
l = LanguageModuleDependency.new(:python, mod_name, import_name)
|
||||||
assert_includes l.message, mod_name
|
assert_includes l.message, mod_name
|
||||||
assert l.the_test.one? { |c| c.include?(import_name) }
|
assert_includes l.the_test, "import #{import_name}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_bad_perl_deps
|
def test_bad_perl_deps
|
||||||
|
@ -74,7 +74,7 @@ class SoftwareSpecTests < Homebrew::TestCase
|
|||||||
|
|
||||||
def test_deprecated_option
|
def test_deprecated_option
|
||||||
@spec.deprecated_option('foo' => 'bar')
|
@spec.deprecated_option('foo' => 'bar')
|
||||||
assert @spec.deprecated_options.any?
|
refute_empty @spec.deprecated_options
|
||||||
assert_equal "foo", @spec.deprecated_options.first.old
|
assert_equal "foo", @spec.deprecated_options.first.old
|
||||||
assert_equal "bar", @spec.deprecated_options.first.current
|
assert_equal "bar", @spec.deprecated_options.first.current
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user