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

Version Path
swd-1.3.0 spec/swd/exception_spec.rb
swd-1.2.0 spec/swd/exception_spec.rb
swd-1.1.2 spec/swd/exception_spec.rb
swd-1.1.1 spec/swd/exception_spec.rb
swd-1.1.0 spec/swd/exception_spec.rb
swd-1.0.1 spec/swd/exception_spec.rb
swd-1.0.0 spec/swd/exception_spec.rb
swd-0.2.1 spec/swd/exception_spec.rb
swd-0.2.0 spec/swd/exception_spec.rb
swd-0.1.2 spec/swd/exception_spec.rb
swd-0.1.1 spec/swd/exception_spec.rb
swd-0.1.0 spec/swd/exception_spec.rb
swd-0.0.9 spec/swd/exception_spec.rb
swd-0.0.8 spec/swd/exception_spec.rb
swd-0.0.7 spec/swd/exception_spec.rb
swd-0.0.6 spec/swd/exception_spec.rb
swd-0.0.5 spec/swd/exception_spec.rb
swd-0.0.4 spec/swd/exception_spec.rb
swd-0.0.3 spec/swd/exception_spec.rb
swd-0.0.2 spec/swd/exception_spec.rb