Sha256: 6f9a3131a265b76d43a91e98adaac232864efd6f38f12cdd0be86b2cf59279ed
Contents?: true
Size: 594 Bytes
Versions: 1
Compression:
Stored size: 594 Bytes
Contents
module Rots module Test module RackTestHelpers def mock_openid_request(app, *args) env = Rack::MockRequest.env_for(*args) @response = Rack::MockResponse.new(*app.call(env)) end def follow_openid_redirect!(app) assert(@response) assert_equal(303, @response.status) env = Rack::MockRequest.env_for(@response.headers["Location"]) _status, headers, _body = Rots::Mocks::RotsServer.new.call(env) uri = URI(headers["Location"]) mock_openid_request(app, "#{uri.path}?#{uri.query}") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rots-1.0.0 | lib/rots/test/rack_test_helpers.rb |