Sha256: 34861a0dd7d43909bcde468062e2d1994ec279c963227bdde00b610324c647ea
Contents?: true
Size: 606 Bytes
Versions: 3
Compression:
Stored size: 606 Bytes
Contents
# 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
meta_presenter-2.0.0 | spec/spec_helper.rb |
meta_presenter-1.0.1 | spec/spec_helper.rb |
meta_presenter-1.0.0 | spec/spec_helper.rb |