Sha256: 5d55a02ae34dc0072dccf4eeb25b9e88bfb2fcd8440b75760ea3959acf8f0533

Contents?: true

Size: 373 Bytes

Versions: 4

Compression:

Stored size: 373 Bytes

Contents

require 'spec_helper'

describe 'Errors' do
  describe CFoundry::Timeout do
    let(:parent) { Timeout::Error.new }

    subject { CFoundry::Timeout.new(Net::HTTP::Post, '/blah', parent) }

    its(:to_s) { should eq "POST /blah timed out" }
    its(:method) { should eq Net::HTTP::Post }
    its(:uri) { should eq '/blah' }
    its(:parent) { should eq parent }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cfoundry-0.4.18 spec/cfoundry/errors_spec.rb
cfoundry-0.4.17 spec/cfoundry/errors_spec.rb
cfoundry-0.4.16 spec/cfoundry/errors_spec.rb
cfoundry-0.4.15 spec/cfoundry/errors_spec.rb