Sha256: c04f6f62e8ae617950ef4cc688a6e72a2e33b5ac13ced78c9bbc6bf5209ecb1f
Contents?: true
Size: 525 Bytes
Versions: 48
Compression:
Stored size: 525 Bytes
Contents
require 'spec_helper.rb' describe Rack::OAuth2::Client::Grant::RefreshToken do let(:grant) { Rack::OAuth2::Client::Grant::RefreshToken } context 'when refresh_token is given' do let :attributes do {refresh_token: 'refresh_token'} end subject { grant.new attributes } its(:as_json) do should == {grant_type: :refresh_token, refresh_token: 'refresh_token'} end end context 'otherwise' do it do expect { grant.new }.to raise_error AttrRequired::AttrMissing end end end
Version data entries
48 entries across 48 versions & 1 rubygems