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

Version Path
opal-rspec-0.6.2 rspec-expectations/spec/rspec/expectations_spec.rb
opal-rspec-0.6.1 rspec-expectations/spec/rspec/expectations_spec.rb
opal-rspec-0.6.0 rspec-expectations/spec/rspec/expectations_spec.rb
opal-rspec-0.6.0.beta1 rspec-expectations/spec/rspec/expectations_spec.rb
opal-connect-rspec-0.5.0 rspec-expectations/spec/rspec/expectations_spec.rb
opal-rspec-0.5.0 rspec-expectations/spec/rspec/expectations_spec.rb
opal-rspec-0.5.0.beta3 rspec-expectations/spec/rspec/expectations_spec.rb
opal-rspec-0.5.0.beta2 rspec-expectations/spec/rspec/expectations_spec.rb
opal-rspec-0.5.0.beta1 rspec-expectations/spec/rspec/expectations_spec.rb