aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/tab_spec.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-02-26 01:11:48 +0100
committerGitHub2017-02-26 01:11:48 +0100
commit714b23f002690c0692d45287c7019e274fea2ef4 (patch)
tree8f0dea62227b7c3435bdd2604cf41087612fc486 /Library/Homebrew/test/tab_spec.rb
parent2401de493d68f341e34b926883f39e404c88173b (diff)
parent2826aa4c7f9b6d8c9ebac30c084160e10365ef55 (diff)
downloadbrew-714b23f002690c0692d45287c7019e274fea2ef4.tar.bz2
Merge pull request #2190 from reitermarkus/spec-build_options
Convert BuildOptions test to spec.
Diffstat (limited to 'Library/Homebrew/test/tab_spec.rb')
-rw-r--r--Library/Homebrew/test/tab_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/test/tab_spec.rb b/Library/Homebrew/test/tab_spec.rb
index 32a06a681..01dbeb67c 100644
--- a/Library/Homebrew/test/tab_spec.rb
+++ b/Library/Homebrew/test/tab_spec.rb
@@ -1,7 +1,7 @@
require "tab"
require "formula"
-RSpec::Matchers.alias_matcher :have_option_with, :be_with
+RSpec::Matchers.alias_matcher :be_built_with, :be_with
describe Tab do
matcher :be_poured_from_bottle do
@@ -80,10 +80,10 @@ describe Tab do
end
specify "#with?" do
- expect(subject).to have_option_with("foo")
- expect(subject).to have_option_with("qux")
- expect(subject).not_to have_option_with("bar")
- expect(subject).not_to have_option_with("baz")
+ expect(subject).to be_built_with("foo")
+ expect(subject).to be_built_with("qux")
+ expect(subject).not_to be_built_with("bar")
+ expect(subject).not_to be_built_with("baz")
end
specify "#universal?" do