aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_software_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/test_software_spec.rb')
-rw-r--r--Library/Homebrew/test/test_software_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/test/test_software_spec.rb b/Library/Homebrew/test/test_software_spec.rb
index 02f586569..26bfd4aff 100644
--- a/Library/Homebrew/test/test_software_spec.rb
+++ b/Library/Homebrew/test/test_software_spec.rb
@@ -44,7 +44,7 @@ class SoftwareSpecTests < Homebrew::TestCase
def test_option
@spec.option('foo')
- assert @spec.build.has_option? 'foo'
+ assert @spec.option_defined?("foo")
end
def test_option_raises_when_begins_with_dashes
@@ -57,7 +57,7 @@ class SoftwareSpecTests < Homebrew::TestCase
def test_option_accepts_symbols
@spec.option(:foo)
- assert @spec.build.has_option? 'foo'
+ assert @spec.option_defined?("foo")
end
def test_depends_on
@@ -68,8 +68,8 @@ class SoftwareSpecTests < Homebrew::TestCase
def test_dependency_option_integration
@spec.depends_on 'foo' => :optional
@spec.depends_on 'bar' => :recommended
- assert @spec.build.has_option?('with-foo')
- assert @spec.build.has_option?('without-bar')
+ assert @spec.option_defined?("with-foo")
+ assert @spec.option_defined?("without-bar")
end
def test_explicit_options_override_default_dep_option_description