Sha256: 863ffa2dcf8673365ba49abbaca64380f24b45dbb55c60c85cf17b99df71f535
Contents?: true
Size: 640 Bytes
Versions: 3
Compression:
Stored size: 640 Bytes
Contents
require 'rails/all' require 'rspec/rails' require 'ammeter' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ammeter-0.0.3 | spec/spec_helper.rb |
ammeter-0.0.2 | spec/spec_helper.rb |
ammeter-0.0.1 | spec/spec_helper.rb |