Sha256: b3527ada285685d6cc9597f2f1628652a49a5cfcb945cf557e54537f475d225a

Contents?: true

Size: 1.05 KB

Versions: 7

Compression:

Stored size: 1.05 KB

Contents

ENV['RACK_ENV']='test'

require 'simplecov'
require 'coveralls'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]

SimpleCov.start do
  project_name 'rack-simple_auth'
  add_filter '/test/'
  add_filter '/pkg/'
  add_filter '/spec/'
  add_filter '/features/'
  add_filter '/doc/'
end if ENV['COVERAGE']

# Minitest
require 'minitest/autorun'
require 'minitest/mock'
require 'minitest/pride' # for colored output

# Rack Test Methods
require 'rack/test'

require 'json'

# Load gem
require 'rack/simple_auth'

module Rack
  # Module which Contains different Authorization / Authentication Classes (HMAC, ..)
  module SimpleAuth
    class << self
      attr_accessor :testapp, :failapp
    end
  end
end

Rack::SimpleAuth.testapp = Rack::Builder.parse_file("#{Rack::SimpleAuth.root}/test/config.ru").first
Rack::SimpleAuth.failapp = Rack::Builder.parse_file("#{Rack::SimpleAuth.root}/test/config_fail.ru").first

@logpath = "#{File.expand_path("..", __FILE__)}/logs"
system("mkdir #{@logpath}")

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rack-simple_auth-0.1.0 test/test_helper.rb
rack-simple_auth-0.0.9 test/test_helper.rb
rack-simple_auth-0.0.8 test/test_helper.rb
rack-simple_auth-0.0.7 test/test_helper.rb
rack-simple_auth-0.0.6 test/test_helper.rb
rack-simple_auth-0.0.5 test/test_helper.rb
rack-simple_auth-0.0.4 test/test_helper.rb