Sha256: d4c1a3589d66eb5ca0cf533e40eb2efcdbf93ca39f7e0b1222d4392f1fc73f02
Contents?: true
Size: 537 Bytes
Versions: 11
Compression:
Stored size: 537 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 }.should raise_error AttrRequired::AttrMissing end end end
Version data entries
11 entries across 11 versions & 1 rubygems