Sha256: 9436da42d50963c5e0da3a3c26420b5b882be86e1afc23685c89160f948e8562
Contents?: true
Size: 599 Bytes
Versions: 9
Compression:
Stored size: 599 Bytes
Contents
require 'rspec/support/spec/prevent_load_time_warnings' RSpec.describe "RSpec::Expectations" do it_behaves_like 'a library that issues no warnings when loaded', 'rspec-expectations', # We define minitest constants because rspec/expectations/minitest_integration # expects these constants to already be defined. 'module Minitest; class Assertion; end; module Test; end; end', 'require "rspec/expectations"' it 'does not allow expectation failures to be caught by a bare rescue' do expect { expect(2).to eq(3) rescue nil }.to fail_matching("expected: 3") end end
Version data entries
9 entries across 9 versions & 2 rubygems