Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (9 sloc) 268 Bytes
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
Jump to Line
Something went wrong with that request. Please try again.