Sha256: d4fe6ead01f14c7aefeeeef93541bd4917ff2dcfa7ca8ecb8f3f78a950d7a2b6

Contents?: true

Size: 611 Bytes

Versions: 13

Compression:

Stored size: 611 Bytes

Contents

ENV["RAILS_ENV"] ||= 'test'

require File.expand_path('../dummy_app/config/environment', __FILE__)
ActiveRecord::Migrator.migrate File.expand_path("../dummy_app/db/migrate/", __FILE__)

require 'rspec/rails'
require 'capybara/rspec'

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }

RSpec.configure do |config|
  config.before(:suite) do
    DatabaseCleaner.strategy = :transaction
    DatabaseCleaner.start
  end

  config.after(:suite) do
    DatabaseCleaner.clean
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
tabulatr-0.4.2 spec/spec_helper.rb
tabulatr-0.4.1 spec/spec_helper.rb
tabulatr-0.4.0 spec/spec_helper.rb
tabulatr-0.3.0 spec/spec_helper.rb
tabulatr-0.2.0 spec/spec_helper.rb
tabulatr-0.1.3 spec/spec_helper.rb
tabulatr-0.1.2 spec/spec_helper.rb
tabulatr-0.1.1 spec/spec_helper.rb
tabulatr-0.1.0 spec/spec_helper.rb
tabulatr-0.0.5 spec/spec_helper.rb
tabulatr-0.0.4 spec/spec_helper.rb
tabulatr-0.0.3 spec/spec_helper.rb
tabulatr-0.0.2 spec/spec_helper.rb