Sha256: cc0865e9e95cd75e67c24163adefa500ba2a4c06569fe4c1f99409e5f4edb9a4
Contents?: true
Size: 1.52 KB
Versions: 2
Compression:
Stored size: 1.52 KB
Contents
require 'simplecov' require 'coveralls' if ENV['CI'] SimpleCov.formatter = Coveralls::SimpleCov::Formatter else SimpleCov.formatter = SimpleCov::Formatter::HTMLFormatter end SimpleCov.start 'rails' # Configure Rails Environment ENV["RAILS_ENV"] = "test" require File.expand_path("../dummy/config/environment.rb", __FILE__) require "rails/test_help" require "rspec/rails" require 'rspec/active_model/mocks' require "capybara/rails" require 'factory_girl' require 'alchemy/seeder' require 'alchemy/test_support/auth_helpers' require 'alchemy/test_support/controller_requests' require 'alchemy/test_support/integration_helpers' require 'alchemy/test_support/factories' require_relative 'support/factories' ActionMailer::Base.delivery_method = :test ActionMailer::Base.perform_deliveries = true ActionMailer::Base.default_url_options[:host] = "test.com" Capybara.default_driver = :rack_test Capybara.default_selector = :css Capybara.ignore_hidden_elements = false RSpec.configure do |config| config.infer_spec_type_from_file_location! config.raise_errors_for_deprecations! config.use_transactional_fixtures = true config.include Devise::TestHelpers, :type => :controller config.include Alchemy::TestSupport::AuthHelpers config.include Alchemy::TestSupport::ControllerRequests, :type => :controller config.include Alchemy::TestSupport::IntegrationHelpers, :type => :feature config.include Alchemy::Engine.routes.url_helpers config.include FactoryGirl::Syntax::Methods config.before(:suite) do Alchemy::Seeder.seed! end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alchemy-devise-2.1.0 | spec/spec_helper.rb |
alchemy-devise-2.1.0.beta3 | spec/spec_helper.rb |