Sha256: 818b54a86428058e1ca5396397f284345c81e3c67cdbbc20d7413c096b1c130c

Contents?: true

Size: 864 Bytes

Versions: 5

Compression:

Stored size: 864 Bytes

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 "will_paginate"
require 'datagrid'
begin
  #require 'ruby-debug'
rescue
end
require 'rspec'


RSpec.configure do |config|


  config.after(:each) do
    #TODO better database truncation
    Group.delete_all
    Entry.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/**/*.rb"].each {|f| require f}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
datagrid-0.3.4 spec/spec_helper.rb
datagrid-0.3.3 spec/spec_helper.rb
datagrid-0.3.2 spec/spec_helper.rb
datagrid-0.3.1 spec/spec_helper.rb
datagrid-0.3.0 spec/spec_helper.rb