Sha256: 03bc0f6d8bfb6244bff2cb5d4b52115d36cfdac2997e581b9b7601a1acbdd20f

Contents?: true

Size: 336 Bytes

Versions: 4

Compression:

Stored size: 336 Bytes

Contents

# taken from  https://raw.github.com/rspec/rspec-rails/master/spec/support/matchers.rb

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
generator_spec-0.10.0 spec/support/matchers.rb
generator_spec-0.9.5 spec/support/matchers.rb
generator_spec-0.9.4 spec/support/matchers.rb
generator_spec-0.9.3 spec/support/matchers.rb