Sha256: d77b7e113196601b0e45b4b33233b50253e209d28154bf3ab12648ad54c312d7

Contents?: true

Size: 797 Bytes

Versions: 9

Compression:

Stored size: 797 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
require 'combustion'

Bundler.require :default, :development

Combustion.initialize! :active_record, :action_controller, :action_mailer, :action_view

require 'rspec/rails'
require 'rack/test'

# Load fixture helpers for testing
Dir[File.join(File.dirname(__FILE__), 'internal', 'db', 'fixtures', '**', '*.rb')].each do |file|
  require file
end

module ApiHelper
  include Rack::Test::Methods

  def app
    Rails.application
  end
end

RSpec.configure do |config|
  config.use_transactional_fixtures = true
  config.mock_with :rspec

  config.before do
    ActionMailer::Base.delivery_method = :test
    ActionMailer::Base.default_options = {
      from: 'no-reply@test.com'
    }
  end

  config.include ApiHelper
  config.include Fixtures::Users
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
token_authenticate_me-0.4.3 spec/spec_helper.rb
token_authenticate_me-0.4.2 spec/spec_helper.rb
token_authenticate_me-0.4.1 spec/spec_helper.rb
token_authenticate_me-0.4.0 spec/spec_helper.rb
token_authenticate_me-0.3.0 spec/spec_helper.rb
token_authenticate_me-0.2.3 spec/spec_helper.rb
token_authenticate_me-0.2.2 spec/spec_helper.rb
token_authenticate_me-0.2.1 spec/spec_helper.rb
token_authenticate_me-0.2.0 spec/spec_helper.rb