Sha256: 3e9d99669a5d5d633eba7b81b471fdfdf099671248d52013e676c715bcfd752b

Contents?: true

Size: 864 Bytes

Versions: 7

Compression:

Stored size: 864 Bytes

Contents

ENV["RAILS_ENV"] = "test"
require "codeclimate-test-reporter"
CodeClimate::TestReporter.start

require 'pry'
require File.expand_path("../../spec/dummy/config/environment.rb",  __FILE__)
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../spec/dummy/db/migrate", __FILE__)]

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

require 'rspec/rails'
require 'record_collection'
require 'database_cleaner'
require 'capybara/rails'
require 'capybara/rspec'
require 'capybara/poltergeist'

Capybara.javascript_driver = :poltergeist
DatabaseCleaner.clean_with :truncation
RSpec.configure do |config|
  config.mock_with :rspec
  config.include Dummy::Application.routes.url_helpers, type: :feature

  config.before :each do
    Employee.delete_all
  end

  config.expect_with :rspec do |c|
    c.syntax = [:should, :expect]
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
record_collection-0.9.2 spec/spec_helper.rb
record_collection-0.9.1 spec/spec_helper.rb
record_collection-0.9.0 spec/spec_helper.rb
record_collection-0.8.3 spec/spec_helper.rb
record_collection-0.8.2 spec/spec_helper.rb
record_collection-0.8.1 spec/spec_helper.rb
record_collection-0.7.5 spec/spec_helper.rb