Sha256: 3622ca5344d634f089b7ed92c54eabddabf69729647229fc136bd411a120a731
Contents?: true
Size: 800 Bytes
Versions: 1
Compression:
Stored size: 800 Bytes
Contents
require 'spec_helper' require_relative '../../lib/sredder/wrike_auth' require_relative '../../lib/sredder/sredderc' describe Sredder::WrikeAuth do let(:auth) { Sredder::WrikeAuth.new } it 'delegates token= to its sredderc' do auth.token = 'banana' auth.sredderc.token.should == 'banana' end it 'delegates secret= to its sredderc' do auth.secret = 'banana' auth.sredderc.secret.should == 'banana' end describe '#authorized?' do it 'returns false if the token and secret attrs not are set' do auth.token = nil auth.secret = 'blah' auth.authorized?.should be_false end it 'returns true if the token and secret attrs are set' do auth.token = 'blah' auth.secret = 'blah' auth.authorized?.should be_true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sredder-0.0.4 | spec/sredder/wrike_auth_spec.rb |