Sha256: 651451c44ad0f1a385332aa3982996a05e30b9fcd88a4d3c20a5325ab4795f07

Contents?: true

Size: 955 Bytes

Versions: 3

Compression:

Stored size: 955 Bytes

Contents

rspec_filter 'hooks' do
  # promise, see opal alternates
  filter /RSpec::Core::Hooks when an error happens in.* allows the error to propagate to the user/
  filter('RSpec::Core::Hooks#around considers the hook to have run when passed as a block to a method that yields').unless { at_least_opal_0_9? }

  # promise, for some reason succeeds on Opal 0.8, see opal alternates
  filter('RSpec::Core::Hooks#around does not consider the hook to have run when passed as a block to a method that does not yield').if { at_least_opal_0_9? }
  filter('RSpec::Core::Hooks#around when it does not run the example for a hook declared in the group converts the example to a skipped example so the user is made aware of it')
      .if { at_least_opal_0_9? }
  filter('RSpec::Core::Hooks#around when it does not run the example for a hook declared in config converts the example to a skipped example so the user is made aware of it')
      .if { at_least_opal_0_9? }
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
opal-connect-rspec-0.5.0 spec/rspec/core/filter/core/async/hooks.rb
opal-rspec-0.5.0 spec/rspec/core/filter/core/async/hooks.rb
opal-rspec-0.5.0.beta3 spec/rspec/core/filter/core/async/hooks.rb