Sha256: 624c1f9706aa582b96127cccc61046fbe6f8c473dfe9495a4a149add49727b2c

Contents?: true

Size: 643 Bytes

Versions: 5

Compression:

Stored size: 643 Bytes

Contents

ENV["RAILS_ENV"] = "test"

if ENV['ACTS_AS_API_ORM'] == 'active_record'
  require "active_record_dummy/config/environment"

  load_schema = lambda {
    load "#{Rails.root.to_s}/db/schema.rb" # use db agnostic schema by default
    # ActiveRecord::Migrator.up('db/migrate') # use migrations
  }
  silence_stream(STDOUT, &load_schema)

elsif ENV['ACTS_AS_API_ORM'] == 'mongoid'

  require "mongoid_dummy/config/environment"

end

require 'rspec/rails'

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|file| require file }

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
acts_as_api-0.4.3 spec/spec_helper.rb
acts_as_api_sequel-0.0.1 spec/spec_helper.rb
acts_as_api-0.4.2 spec/spec_helper.rb
acts_as_api-0.4.1 spec/spec_helper.rb
acts_as_api-0.4 spec/spec_helper.rb