Sha256: 5e46ec61a65e870c46535662631a25e11933067f4377cfc04d1bcfac7d0accae

Contents?: true

Size: 576 Bytes

Versions: 13

Compression:

Stored size: 576 Bytes

Contents

unless defined? Rails
  class Rails
    def self.root
      File.expand_path('dummy', __FILE__)
    end
    
    def self.env
      'test'
    end
  end
end

ENV["RAILS_ENV"] ||= 'test'

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

RSpec.configure do |config|
  config.mock_with :rspec
end

# https://makandracards.com/makandra/950-speed-up-rspec-by-deferring-garbage-collection
RSpec.configure do |config|
  config.before(:all) do
    DeferredGarbageCollection.start
  end
  config.after(:all) do
    DeferredGarbageCollection.reconsider 
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
rails_info-0.1.1 spec/spec_helper_without_rails.rb
rails_info-0.1.0 spec/spec_helper_without_rails.rb
rails_info-0.0.9 spec/spec_helper_without_rails.rb
rails_info-0.0.8 spec/spec_helper_without_rails.rb
rails_info-0.0.7 spec/spec_helper_without_rails.rb
multi_formal_i18n_tenancy-0.0.5 spec/spec_helper.rb
multi_formal_i18n_tenancy-0.0.4 spec/spec_helper.rb
multi_formal_i18n_tenancy-0.0.3 spec/spec_helper.rb
rails_info-0.0.6 spec/spec_helper_without_rails.rb
multi_formal_i18n_tenancy-0.0.2 spec/spec_helper.rb
multi_formal_i18n_tenancy-0.0.1 spec/spec_helper.rb
rails_info-0.0.5 spec/spec_helper_without_rails.rb
rails_info-0.0.4 spec/spec_helper_without_rails.rb