Sha256: 4de879260e2d016cfd3e9f32de8a6485f3e45ed255c13b0937b7bf69593f2925

Contents?: true

Size: 997 Bytes

Versions: 4

Compression:

Stored size: 997 Bytes

Contents

# encoding: utf-8

$:.unshift(File.dirname(__FILE__) + '/../lib')
$:.unshift(File.dirname(__FILE__))
$KCODE = 'UTF8' if RUBY_VERSION < '1.9'
$VERBOSE = false
require 'test/unit'
require 'contest'
# You can use "rake test AR_VERSION=2.0.5" to test against 2.0.5, for example.
# The default is to use the latest installed ActiveRecord.
if ENV["AR_VERSION"]
  gem 'activerecord', "#{ENV["AR_VERSION"]}"
  gem 'activesupport', "#{ENV["AR_VERSION"]}"
end
require 'active_record'
require 'active_support'

ActiveRecord::Base.establish_connection :adapter => "sqlite3", :database => ":memory:"
silence_stream(STDOUT) do
  load(File.dirname(__FILE__) + "/schema.rb")
end

class ActiveRecord::Base
  def log_protected_attribute_removal(*args) end
end

require 'friendly_id'
require 'models/post'
require 'models/person'
require 'models/user'
require 'models/country'
require 'models/book'
require 'models/novel'
require 'models/thing'
require 'models/event'
require 'models/city'
require 'models/district'

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
friendly_id-2.2.2 test/test_helper.rb
nateabbott-friendly-id-2.2.1 test/test_helper.rb
friendly_id-2.2.1 test/test_helper.rb
friendly_id-2.2.0 test/test_helper.rb