Sha256: 61849e8b36618e5271b142e32ad3250690aead7e7768cad08f2e756bf3b0ac80

Contents?: true

Size: 581 Bytes

Versions: 4

Compression:

Stored size: 581 Bytes

Contents

require "coveralls"
Coveralls.wear!

$LOAD_PATH.unshift File.expand_path("../../lib", __FILE__)
require "rails/auth"
require "rails/auth/rspec"
require "support/create_certs"
require "support/claims_matcher"
require "pathname"

RSpec.configure(&:disable_monkey_patching!)

def cert_path(name)
  Pathname.new(File.expand_path("../../tmp/certs", __FILE__)).join(name)
end

def fixture_path(*args)
  Pathname.new(File.expand_path("../fixtures", __FILE__)).join(*args)
end

def env_for(method, path)
  {
    "REQUEST_METHOD" => method.to_s.upcase,
    "REQUEST_PATH"   => path
  }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails-auth-0.4.0 spec/spec_helper.rb
rails-auth-0.3.0 spec/spec_helper.rb
rails-auth-0.2.0 spec/spec_helper.rb
rails-auth-0.1.0 spec/spec_helper.rb