# 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
