Sha256: 99495600d7ccb1872f21b2aafe9442697108e53dd1236e1f4d067e8596f98158

Contents?: true

Size: 809 Bytes

Versions: 1

Compression:

Stored size: 809 Bytes

Contents

require File.expand_path('../test_utils', __FILE__)

require 'coveralls'
Coveralls.wear!

# Configure Rails Environment
ENV['RAILS_ENV'] = 'test'

require File.expand_path("../#{TestUtils.dummy_app_dir}/config/environment.rb",  __FILE__)
require 'rails/test_help'

puts "Rails #{Rails.version} is loaded"

Rails.backtrace_cleaner.remove_silencers!

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

# Load fixtures from the engine
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
  ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
end

module TestHelper
  extend self

  def random_date
    Date.today - 10000 * rand
  end
end

class ActiveSupport::TestCase
  include FactoryGirl::Syntax::Methods
  include TestHelper
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
attr_similar-0.0.2 test/test_helper.rb