Sha256: b315ee1276ccf3aff1e0e895ed0d21b768adfb89ba2275cc30b33ac9b61c8c32

Contents?: true

Size: 1.16 KB

Versions: 13

Compression:

Stored size: 1.16 KB

Contents

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

ENV["RAILS_ENV"] = "test"

require 'ruby-debug' ; Debugger.start
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"

class ActiveSupport::TestCase
  include AttachmentMagickTestHelper
end

class ActionController::TestCase
  include AttachmentMagickTestHelper
end

class ActionView::TestCase
  include AttachmentMagickTestHelper
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
attachment_magick-0.3.3 test/test_helper.rb
attachment_magick-0.3.2 test/test_helper.rb
attachment_magick-0.3.1 test/test_helper.rb
attachment_magick-0.3 test/test_helper.rb
attachment_magick-0.2.7 test/test_helper.rb
attachment_magick-0.2.6 test/test_helper.rb
attachment_magick-0.2.5 test/test_helper.rb
attachment_magick-0.2.4 test/test_helper.rb
attachment_magick-0.2.3 test/test_helper.rb
attachment_magick-0.2.2 test/test_helper.rb
attachment_magick-0.2.1 test/test_helper.rb
attachment_magick-0.2.0 test/test_helper.rb
attachment_magick-0.1.0 test/test_helper.rb