Sha256: 22cf837f2465caa548d67a7fd542dc67efa95bc597dc02089f2262d71f19e1aa

Contents?: true

Size: 299 Bytes

Versions: 3

Compression:

Stored size: 299 Bytes

Contents

# frozen_string_literal: true
RSpec::Matchers.define :be_included_in_files_in do |path|
  match do |mod|
    stub_metadata(
      :example_group => { :file_path => "#{path}whatever_spec.rb:15" }
    )
    group = RSpec::Core::ExampleGroup.describe
    group.included_modules.include?(mod)
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
rspec-activemodel-mocks-1.2.1 spec/support/matchers.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rspec-activemodel-mocks-1.2.0/spec/support/matchers.rb
rspec-activemodel-mocks-1.2.0 spec/support/matchers.rb