Sha256: 4b2cd9c90a8fa112c328f2ee38df9d6b13417fd9a898c973dc33bbc782600d89
Contents?: true
Size: 1012 Bytes
Versions: 26
Compression:
Stored size: 1012 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
26 entries across 26 versions & 1 rubygems