Sha256: df9173fac557d2c1bb5ff0cc78b8e8f0617581cc12c9ff819c1c31ccd4f23e46
Contents?: true
Size: 999 Bytes
Versions: 11
Compression:
Stored size: 999 Bytes
Contents
require 'spec_helper_integration' feature 'Implicit Grant Flow Errors' do background do config_is_set(:authenticate_resource_owner) { User.first || redirect_to('/sign_in') } client_exists create_resource_owner sign_in end after do access_token_should_not_exist end [ [:client_id, :invalid_client], [:redirect_uri, :invalid_redirect_uri] ].each do |error| scenario "displays #{error.last.inspect} error for invalid #{error.first.inspect}" do visit authorization_endpoint_url(client: @client, error.first => 'invalid', response_type: 'token') i_should_not_see 'Authorize' i_should_see_translated_error_message error.last end scenario "displays #{error.last.inspect} error when #{error.first.inspect} is missing" do visit authorization_endpoint_url(client: @client, error.first => '', response_type: 'token') i_should_not_see 'Authorize' i_should_see_translated_error_message error.last end end end
Version data entries
11 entries across 11 versions & 1 rubygems