Sha256: 6891f24484ee0bf7a9711279b51f669e11776b96acfcb817cefed20c911f894e

Contents?: true

Size: 896 Bytes

Versions: 16

Compression:

Stored size: 896 Bytes

Contents

ENV['RAILS_ENV'] ||= 'test'
require File.expand_path("../dummy/config/environment.rb",  __FILE__)
require 'rspec/rails'
require 'database_cleaner'
require 'pry'
require 'carrierWave'
require 'carrierwave/orm/activerecord'
#require 'rspec/autorun'

require 'factory_girl_rails'
# Load Dummy Factories
ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), 'dummy/')
Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/factories/**/*.rb")].each {|f| require f }

Rails.backtrace_cleaner.remove_silencers!

# Load support files
#Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
RSpec.configure do |config|
  config.mock_with :rspec
  config.use_transactional_fixtures = true
  config.infer_base_class_for_anonymous_controllers = false
  config.order = "random"

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

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

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
poodle-rb-0.2.5 spec/spec_helper.rb
poodle-rb-0.2.4 spec/spec_helper.rb
poodle-rb-0.2.3 spec/spec_helper.rb
poodle-rb-0.2.2 spec/spec_helper.rb
poodle-rb-0.2.1 spec/spec_helper.rb
poodle-rb-0.2.0 spec/spec_helper.rb
poodle-rb-0.1.9 spec/spec_helper.rb
poodle-rb-0.1.8 spec/spec_helper.rb
poodle-rb-0.1.7 spec/spec_helper.rb
poodle-rb-0.1.6 spec/spec_helper.rb
poodle-rb-0.1.5 spec/spec_helper.rb
poodle-rb-0.1.4 spec/spec_helper.rb
poodle-rb-0.1.3 spec/spec_helper.rb
poodle-rb-0.1.2 spec/spec_helper.rb
poodle-rb-0.1.1 spec/spec_helper.rb
poodle-rb-0.1.0 spec/spec_helper.rb