Sha256: eefb26c8caf3b9c75b9218592a066a07c8acd23c12cd08938245a7241bf0d23b
Contents?: true
Size: 621 Bytes
Versions: 22
Compression:
Stored size: 621 Bytes
Contents
require 'spec_helper' describe SWD::HttpError do subject do SWD::HttpError.new 400, 'Bad Request', HTTP::Message.new_response('') end its(:status) { should == 400 } its(:message) { should == 'Bad Request' } its(:response) { should be_a HTTP::Message } end describe SWD::BadRequest do its(:status) { should == 400 } its(:message) { should == 'SWD::BadRequest' } end describe SWD::Unauthorized do its(:status) { should == 401 } its(:message) { should == 'SWD::Unauthorized' } end describe SWD::Forbidden do its(:status) { should == 403 } its(:message) { should == 'SWD::Forbidden' } end
Version data entries
22 entries across 22 versions & 1 rubygems