Sha256: b0c3e66d4424a3f1001eff0178a7c5d4ca25303c3d4d27c597332659b5ef26d2

Contents?: true

Size: 592 Bytes

Versions: 2

Compression:

Stored size: 592 Bytes

Contents

require 'rails/all'
require 'rspec/rails'

ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"

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}

RSpec.configure do |c|
  c.include MatchesForRSpecRailsSpecs
  if RSpec::Core::Version::STRING < '3'
    c.include RSpec2MemoizedHelpersCompatibility
  end
end

def stub_file(filename, content)
  allow(File).to receive(:read).with(filename).and_return(content)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ammeter-1.1.1 spec/spec_helper.rb
ammeter-1.1.0 spec/spec_helper.rb