Sha256: e75a4c0d4a53ec17587a5e5a9ada3fbfed3d4b717fcf5841d18c241493931bea

Contents?: true

Size: 1.18 KB

Versions: 11

Compression:

Stored size: 1.18 KB

Contents

require 'rubygems'
require 'bundler'

begin
  Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
  $stderr.puts e.message
  $stderr.puts "Run `bundle install` to install missing gems"
  exit e.status_code
end

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

require "active_record"
require 'action_view'
require "mongoid"
require "mongo_mapper"
require 'datagrid'
begin
  require 'ruby-debug'
rescue LoadError
end
require 'rspec'
require "logger"

File.open('spec.log', "w").close
TEST_LOGGER = Logger.new('spec.log')


RSpec.configure do |config|


  config.after(:each) do
    #TODO better database truncation
    Group.delete_all
    Entry.delete_all
    MongoidEntry.delete_all
    MongoMapperEntry.delete_all

  end


end



# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/schema.rb"].each {|f| require f}
Dir["#{File.dirname(__FILE__)}/support/mongoid.rb"].each {|f| require f}
Dir["#{File.dirname(__FILE__)}/support/mongo_mapper.rb"].each {|f| require f}
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
datagrid-1.0.0 spec/spec_helper.rb
datagrid-0.9.3 spec/spec_helper.rb
datagrid-0.9.2 spec/spec_helper.rb
datagrid-0.9.0 spec/spec_helper.rb
datagrid-0.8.4 spec/spec_helper.rb
datagrid-0.8.3 spec/spec_helper.rb
datagrid-0.8.2 spec/spec_helper.rb
datagrid-0.8.1 spec/spec_helper.rb
datagrid-0.8.0 spec/spec_helper.rb
datagrid-0.7.1 spec/spec_helper.rb
datagrid-0.7.0 spec/spec_helper.rb