Sha256: ba33057417b731422e02111d83d1b9a06a0da3f0dc5dfc597c54c55c3c6e2769

Contents?: true

Size: 948 Bytes

Versions: 11

Compression:

Stored size: 948 Bytes

Contents

# This file is copied to ~/spec when you run 'ruby script/generate rspec'
# from the project root directory.
ENV["RAILS_ENV"] ||= 'test'
env_file = File.expand_path(File.join(File.dirname(__FILE__),'..','config','environment'))
if File.exists?("#{env_file}.rb")
  require env_file
  require 'spec/autorun'
  require 'spec/rails'
  require 'authlogic/test_case'
else
  require 'rubygems'
  require 'mocha' # gem install jferris-mocha, not regular mocha
end

# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f}

Spec::Runner.configure do |config|
  if defined?(Rails)
    config.use_transactional_fixtures = true
    config.use_instantiated_fixtures  = false
    config.fixture_path = RAILS_ROOT + '/spec/fixtures/'
    config.include(Authlogic::TestCase)
  end
  config.mock_with Mocha::API
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
lockbox_middleware-1.6.4 spec/spec_helper.rb
lockbox_middleware-1.6.2 spec/spec_helper.rb
lockbox_middleware-1.5.1 spec/spec_helper.rb
lockbox_middleware-1.5.0 spec/spec_helper.rb
lockbox_middleware-1.4.2 spec/spec_helper.rb
lockbox_middleware-1.4.1 spec/spec_helper.rb
lockbox_middleware-1.3.1 spec/spec_helper.rb
lockbox_middleware-1.3.0 spec/spec_helper.rb
lockbox_middleware-1.2.3 spec/spec_helper.rb
lockbox_middleware-1.2.2 spec/spec_helper.rb
lockbox_middleware-1.2.0 spec/spec_helper.rb