Sha256: 726245b180123dd711f39a7b9edbed30c66137dcf83d66dcb720708c2d13d46b

Contents?: true

Size: 594 Bytes

Versions: 4

Compression:

Stored size: 594 Bytes

Contents

require 'spec_helper'

describe SWD::HttpError do
  subject do
    SWD::HttpError.new 400, 'Bad Request', 'Message'
  end

  its(:status)   { should == 400 }
  its(:message)  { should == 'Bad Request' }
  its(:response) { should == '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

4 entries across 4 versions & 1 rubygems

Version Path
swd-2.0.3 spec/swd/exception_spec.rb
swd-2.0.2 spec/swd/exception_spec.rb
swd-2.0.1 spec/swd/exception_spec.rb
swd-2.0.0 spec/swd/exception_spec.rb