spec/lib/server_spec.rb in doorkeeper-5.0.0 vs spec/lib/server_spec.rb in doorkeeper-5.0.1

- old
+ new

@@ -20,13 +20,13 @@ end.to raise_error(Doorkeeper::Errors::InvalidTokenStrategy) end context 'when only Authorization Code strategy is enabled' do before do - allow(Doorkeeper.configuration). - to receive(:grant_flows). - and_return(['authorization_code']) + allow(Doorkeeper.configuration) + .to receive(:grant_flows) + .and_return(['authorization_code']) end it 'raises error when using the disabled Implicit strategy' do expect do subject.authorization_request(:token) @@ -45,12 +45,12 @@ expect(fake_class).to receive(:new).with(subject) subject.authorization_request :code end it 'builds the request with composite strategy name' do - allow(Doorkeeper.configuration). - to receive(:authorization_response_types). - and_return(['id_token token']) + allow(Doorkeeper.configuration) + .to receive(:authorization_response_types) + .and_return(['id_token token']) stub_const 'Doorkeeper::Request::IdTokenToken', fake_class expect(fake_class).to receive(:new).with(subject) subject.authorization_request 'id_token token' end