Sha256: 383e4155bc1568795257c200447510b1c471459d1a1d94e2379b0cad49cfe9e0
Contents?: true
Size: 1.29 KB
Versions: 3
Compression:
Stored size: 1.29 KB
Contents
begin require 'spork' rescue LoadError => e end def configure # Configure Rails Environment ENV["RAILS_ENV"] = "test" require File.expand_path("../dummy/config/environment.rb", __FILE__) require 'database_cleaner' DatabaseCleaner.strategy = :truncation require "rails/test_help" require "rspec/rails" require "email_spec" ActionMailer::Base.delivery_method = :test ActionMailer::Base.perform_deliveries = true ActionMailer::Base.default_url_options[:host] = "test.com" Rails.backtrace_cleaner.remove_silencers! # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| # Remove this line if you don't want RSpec's should and should_not # methods or matchers require 'rspec/expectations' config.include RSpec::Matchers # for testing mails config.include(EmailSpec::Helpers) config.include(EmailSpec::Matchers) config.use_transactional_fixtures = true # == Mock Framework config.mock_with :rspec end end def seed # This code will be run each time you run your specs. DatabaseCleaner.clean # Seed the database Alchemy::Seeder.seed! AlchemyCrm::Seeder.seed! end if defined?(Spork) Spork.prefork { configure } Spork.each_run { seed } else configure seed end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alchemy_crm-2.1.0a | spec/spec_helper.rb |
alchemy_crm-2.0.3 | spec/spec_helper.rb |
alchemy_crm-2.0.2 | spec/spec_helper.rb |