lib/fivemat/rspec.rb in fivemat-1.3.1 vs lib/fivemat/rspec.rb in fivemat-1.3.2
- old
+ new
@@ -41,9 +41,12 @@
end
def pending_fixed?(example)
if example.execution_result[:exception].respond_to?(:pending_fixed?)
example.execution_result[:exception].pending_fixed?
+ elsif defined?(::RSpec::Core::Pending::PendingExampleFixedError)
+ # RSpec 2.99.2 compatibility
+ ::RSpec::Core::Pending::PendingExampleFixedError == example.execution_result[:exception]
else
::RSpec::Core::PendingExampleFixedError === example.execution_result[:exception]
end
end