Sha256: 6aa13f4143e515b8286313217e76704fbdf2fa925ef16c1bc4b6025b4a856ce9

Contents?: true

Size: 1.23 KB

Versions: 11

Compression:

Stored size: 1.23 KB

Contents

require 'rubygems'
require 'rspec'
require 'active_record'
require 'active_record/version'
require 'active_support'
require 'active_support/core_ext'
require 'mocha/api'
require 'bourne'
require 'ostruct'

ROOT = Pathname(File.expand_path(File.join(File.dirname(__FILE__), '..')))

puts "Testing against version #{ActiveRecord::VERSION::STRING}"

$LOAD_PATH << File.join(ROOT, 'lib')
$LOAD_PATH << File.join(ROOT, 'lib', 'paperclip')
require File.join(ROOT, 'lib', 'paperclip.rb')

FIXTURES_DIR = File.join(File.dirname(__FILE__), "fixtures")
config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log")
ActiveRecord::Base.establish_connection(config['test'])
Paperclip.options[:logger] = ActiveRecord::Base.logger

Dir[File.join(ROOT, 'spec', 'support', '**', '*.rb')].each{|f| require f }

Rails = FakeRails.new('test', Pathname.new(ROOT).join('tmp'))
ActiveSupport::Deprecation.silenced = true

RSpec.configure do |config|
  config.include Assertions
  config.include ModelReconstruction
  config.include TestData
  config.extend VersionHelper
  config.extend RailsHelpers::ClassMethods
  config.mock_framework = :mocha
  config.before(:all) do
    rebuild_model
  end
end

Version data entries

11 entries across 9 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/paperclip-4.2.4/spec/spec_helper.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/paperclip-4.2.4/spec/spec_helper.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/paperclip-4.2.2/spec/spec_helper.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/paperclip-4.2.4/spec/spec_helper.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/paperclip-4.2.3/spec/spec_helper.rb
paperclip-4.3.0 spec/spec_helper.rb
paperclip-4.2.4 spec/spec_helper.rb
paperclip-4.2.3 spec/spec_helper.rb
paperclip-4.2.2 spec/spec_helper.rb
paperclip-4.2.1 spec/spec_helper.rb
paperclip-4.2.0 spec/spec_helper.rb