spec/support/matchers.rb in generator_spec-0.9.2 vs spec/support/matchers.rb in generator_spec-0.9.3
- old
+ new
@@ -1,10 +1,10 @@
# 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(
- :example_group => {:file_path => "#{path}whatever_spec.rb:15"}
+ :file_path => "#{path}whatever_spec.rb:15"
)
group = RSpec::Core::ExampleGroup.describe
group.included_modules.include?(mod)
end
end