Sha256: f9d065c2847ca4b9d75b06671e22439a04a61758662ace02622571fc25492b76

Contents?: true

Size: 570 Bytes

Versions: 1

Compression:

Stored size: 570 Bytes

Contents

require "simplecov"

require "active_record"
require "bcdatabase"
ActiveRecord::Base.establish_connection(Bcdatabase.load[:has_unique_three_letter_code, "test"])

require "has_unique_three_letter_code"

Dir[File.expand_path("#{__FILE__}/../support/*.rb")].each { |f| require f }

RSpec.configure do |config|
  config.order = "random"
  config.before(:suite) do
    CreateClients.up
  end
  config.after(:suite) do
    CreateClients.down
  end
  config.around(:each) do |test|
    Client.transaction do
      test.run
      raise ActiveRecord::Rollback
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
has_unique_three_letter_code-0.0.1 spec/spec_helper.rb