Sha256: 373a59858b3263aec48ea7a8b5eb362ad7ab37c248bc5f6bfcf99084e6a47150

Contents?: true

Size: 869 Bytes

Versions: 6

Compression:

Stored size: 869 Bytes

Contents

require_relative 'spec_helper_base'

require 'rspec/core'
require 'rspec/rails/extensions'
require 'rspec/rails/adapters'
require 'rspec/rails/matchers'
require 'rspec/rails/mocks'

require 'database_cleaner'
require 'factory_girl_rails'
require 'paperclip/matchers'
require 'ffaker'
require 'shoulda-matchers'

require 'gaku/testing/factories'

Dir["#{File.dirname(__FILE__)}/support/models/**/*.rb"].each { |f| require f }
# ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)

RSpec.configure do |config|

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

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

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

  config.include FactoryGirl::Syntax::Methods
  config.include Paperclip::Shoulda::Matchers

end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
gaku-0.2.4 testing/lib/gaku/testing/spec_helpers/spec_helper_models.rb
gaku_testing-0.2.4 lib/gaku/testing/spec_helpers/spec_helper_models.rb
gaku-0.2.3 testing/lib/gaku/testing/spec_helpers/spec_helper_models.rb
gaku_testing-0.2.3 lib/gaku/testing/spec_helpers/spec_helper_models.rb
gaku-0.2.2 testing/lib/gaku/testing/spec_helpers/spec_helper_models.rb
gaku_testing-0.2.2 lib/gaku/testing/spec_helpers/spec_helper_models.rb