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

Version Path
classiccms-0.7.5 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.7.4 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.7.3 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.7.2 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.7.1 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.7.0 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.6.9 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.6.8 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.6.7 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.6.6 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.6.5 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.6.4 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.6.3 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.6.2 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.6.1 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.6.0 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.5.17 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.5.16 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.5.15 lib/classiccms/scaffold/spec/spec_helper.rb
classiccms-0.5.14 lib/classiccms/scaffold/spec/spec_helper.rb