spec/spec_helper.rb in nanoc-4.4.7 vs spec/spec_helper.rb in nanoc-4.5.0
- old
+ new
@@ -74,9 +74,11 @@
$stdout.puts "Focusing spec on '#{ENV['FOCUS']}'"
c.filter_run_including ENV['FOCUS'].to_sym => true
end
end
+RSpec::Matchers.define_negated_matcher :not_match, :match
+
RSpec::Matchers.define :raise_frozen_error do |_expected|
match do |actual|
begin
actual.call
false