Sha256: f51a027c6c1bfd3e5b5cb6b8bede7637f50a4ce7869b97fa3dc4bcd93d6a4f2c

Contents?: true

Size: 404 Bytes

Versions: 1

Compression:

Stored size: 404 Bytes

Contents

$:.unshift(File.expand_path("../lib", File.dirname(__FILE__)))

require "shield"
require "cutest"
require "rack/test"
require "sinatra/base"

class Cutest::Scope
  include Rack::Test::Methods

  def assert_redirected_to(path)
    assert_equal 302,  last_response.status
    assert_equal path, URI(last_response.headers["Location"]).path
  end

  def session
    last_request.env["rack.session"]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shield-0.0.4 test/helper.rb