Sha256: c7150d817f233a1206052817bfcdde9fcdd33d0d81fc3d1c7ffa981214125d2f

Contents?: true

Size: 1.24 KB

Versions: 3

Compression:

Stored size: 1.24 KB

Contents

# Configure Rails Envinronment
begin
  require 'simplecov'
  SimpleCov.start('rails') do
    add_filter '/vendor/'
  end
rescue
end

ENV["RAILS_ENV"] = "test"

require File.expand_path("../dummy/config/environment.rb",  __FILE__)
require "rails/test_help"

ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.default_url_options[:host] = "test.com"

Rails.backtrace_cleaner.remove_silencers!

# Configure capybara for integration testing
require "capybara/rails"
Capybara.default_driver   = :rack_test
Capybara.default_selector = :css

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

# For generators
require "rails/generators/test_case"
require "generators/attachment_magick/install_generator"
require "generators/attachment_magick/migration_generator"

# Some helpers
require "attachment_magick/test/attachment_magick_test_helper"
require "action_dispatch/testing/test_process"

class ActiveSupport::TestCase
  include AttachmentMagickTestHelper
  include ActionDispatch::TestProcess
end

class ActionController::TestCase
  include AttachmentMagickTestHelper
  include ActionDispatch::TestProcess
end

class ActionView::TestCase
  include AttachmentMagickTestHelper
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
attachment_magick-0.3.6 test/test_helper.rb
attachment_magick-0.3.5 test/test_helper.rb
attachment_magick-0.3.4 test/test_helper.rb