Sha256: cfcf5581d4ccc31e33724dc61db9baa25b8fa2de9466674d4f405b650c98f732
Contents?: true
Size: 827 Bytes
Versions: 3
Compression:
Stored size: 827 Bytes
Contents
require 'spec_helper' describe BoxView::Session, '#expiration_date' do it 'should raise error when expiration date is nil' do BoxView::Session.expiration_date = nil expect{BoxView::Session.expiration_date}.to raise_error(BoxView::Errors::ExpirationDateNotFound) end it 'should return when expiration date is defined' do BoxView::Session.expiration_date = Time.now expect(BoxView::Session.expiration_date).not_to be_nil end end describe BoxView::Session, '#duration' do it 'should raise error when duration is nil' do BoxView::Session.duration = nil expect{BoxView::Session.duration}.to raise_error(BoxView::Errors::DurationNotFound) end it 'should return when duration is defined' do BoxView::Session.duration = 100 expect(BoxView::Session.duration).not_to be_nil end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
boxview.rb-0.1.2 | spec/lib/boxview/session_spec.rb |
boxview.rb-0.1.1 | spec/lib/boxview/session_spec.rb |
boxview.rb-0.0.9 | spec/lib/boxview/session_spec.rb |