Sha256: 2efee7a721f200474f28a25b2d1fa02816d9d21244439d2a5d4bd404d7ac71e1
Contents?: true
Size: 754 Bytes
Versions: 4
Compression:
Stored size: 754 Bytes
Contents
require 'rails/all' require 'rspec/rails' module TestApp class Application < Rails::Application config.root = File.dirname(__FILE__) end end 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ammeter-0.2.9 | spec/spec_helper.rb |
ammeter-0.2.8 | spec/spec_helper.rb |
ammeter-0.2.7 | spec/spec_helper.rb |
ammeter-0.2.6 | spec/spec_helper.rb |