From 3cdf8f938a7cc31e366c49f8f5134a51bdcfdc7f Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Tue, 9 May 2017 23:00:51 +0200 Subject: Use scoped RSpec matchers. --- Library/Homebrew/test/sandbox_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/test/sandbox_spec.rb') diff --git a/Library/Homebrew/test/sandbox_spec.rb b/Library/Homebrew/test/sandbox_spec.rb index 0d349f6eb..eafec4dd4 100644 --- a/Library/Homebrew/test/sandbox_spec.rb +++ b/Library/Homebrew/test/sandbox_spec.rb @@ -1,8 +1,8 @@ require "sandbox" -RSpec::Matchers.define_negated_matcher :not_matching, :matching - describe Sandbox do + define_negated_matcher :not_matching, :matching + let(:dir) { mktmpdir } let(:file) { dir/"foo" } -- cgit v1.2.3