Sha256: 67d717a942a07f5f3b52917d14fc7a6c985677ad10e28c232eb7e708520d396f
Contents?: true
Size: 645 Bytes
Versions: 10
Compression:
Stored size: 645 Bytes
Contents
require 'rails/all' require 'rspec/rails' require 'ammeter/init' Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} # TODO - most of this is borrowed from rspec-rails's spec_helper - which # is copied from rspec-core's module MatchesForRSpecRailsSpecs extend RSpec::Matchers::DSL matcher :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 end RSpec.configure do |c| c.include MatchesForRSpecRailsSpecs end
Version data entries
10 entries across 10 versions & 1 rubygems