Sha256: c07e7e19bb2da1eee2d1587c64875f0e295bb8ef99acdee1be9d81297a2de5e6
Contents?: true
Size: 444 Bytes
Versions: 44
Compression:
Stored size: 444 Bytes
Contents
require 'rubygems' require 'bundler/setup' #set environment to test ENV['RACK_ENV'] = 'test' #include app require 'classiccms/application' Classiccms.boot #include sinatra end set environment #require 'rack/test' require 'sinatra' set :environment, :test RSpec.configure do |config| config.before(:each) do Mongoid.master.collections.reject { |c| c.name =~ /^system./ }.each(&:drop) end # config.include Rack::Test::Methods end
Version data entries
44 entries across 44 versions & 1 rubygems