Sha256: ea14968bd4844b1e7310c01a9750af9cc9f1e047b0a909ea6af04e84b8db4ff7
Contents?: true
Size: 656 Bytes
Versions: 11
Compression:
Stored size: 656 Bytes
Contents
# spec coverage require 'coveralls' Coveralls.wear! # debug tool require "pry" # main lib module require "meta_presenter" # support files Dir["#{__dir__}/support/*.rb"].each {|file| require file } # Simulate the Rails env. # Instead of loading the Rails environment, we stub the bare amount # and load from spec/support/app as if it were a Rails app begin # mount app dir tree Dir["#{__dir__}/support/app/**/*.rb"].each {|file| require file } # mock Rails module Rails end # stub Rails.root RSpec.configure do |config| config.before do allow(Rails).to receive(:root).and_return(File.join(__dir__, 'support')) end end end
Version data entries
11 entries across 11 versions & 1 rubygems