Sha256: 5f275e9602100d59b758805747b158266353bf33a83b1bcdd1e5bea93757e347

Contents?: true

Size: 882 Bytes

Versions: 3

Compression:

Stored size: 882 Bytes

Contents

require "simplecov"
SimpleCov.start

require "active_record"
require "database_cleaner"
require "factory_girl"

require "read_activity"

ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:")
require_relative "schema.rb"
require_relative "models.rb"
require "generators/read_activity/templates/create_read_activity_marks"
CreateReadActivityMarks.migrate(:up)

FactoryGirl.find_definitions

RSpec.configure do |config|

  config.before(:suite) do
    DatabaseCleaner.strategy = :truncation
  end

  config.before(:each) do
    DatabaseCleaner.start
  end

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

  config.expect_with :rspec do |expectations|
    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end

  config.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = true
  end

  config.order = :random
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
read_activity-0.0.4 spec/spec_helper.rb
read_activity-0.0.3.1 spec/spec_helper.rb
read_activity-0.0.3 spec/spec_helper.rb