diff options
| author | Markus Reiter | 2017-05-09 23:00:51 +0200 |
|---|---|---|
| committer | Markus Reiter | 2017-05-15 17:23:40 +0200 |
| commit | 3cdf8f938a7cc31e366c49f8f5134a51bdcfdc7f (patch) | |
| tree | 39b61acf2a35ef536677395d47f177d35037f431 /Library/Homebrew/test/build_options_spec.rb | |
| parent | ea8be174f6009bc9bdec67b13ca501b5b83fc4b8 (diff) | |
| download | brew-3cdf8f938a7cc31e366c49f8f5134a51bdcfdc7f.tar.bz2 | |
Use scoped RSpec matchers.
Diffstat (limited to 'Library/Homebrew/test/build_options_spec.rb')
| -rw-r--r-- | Library/Homebrew/test/build_options_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/test/build_options_spec.rb b/Library/Homebrew/test/build_options_spec.rb index 5acc12f30..1e6c9ea35 100644 --- a/Library/Homebrew/test/build_options_spec.rb +++ b/Library/Homebrew/test/build_options_spec.rb @@ -1,10 +1,10 @@ require "build_options" require "options" -RSpec::Matchers.alias_matcher :be_built_with, :be_with -RSpec::Matchers.alias_matcher :be_built_without, :be_without - describe BuildOptions do + alias_matcher :be_built_with, :be_with + alias_matcher :be_built_without, :be_without + subject { described_class.new(args, opts) } let(:bad_build) { described_class.new(bad_args, opts) } let(:args) { Options.create(%w[--with-foo --with-bar --without-qux]) } |
