Sha256: 83dfef86f9d473dfef743f28e6ce6c12d512a58b200660d84aa1669437dd53c7

Contents?: true

Size: 317 Bytes

Versions: 18

Compression:

Stored size: 317 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Hyperdrive::Errors::UnknownError do
  before do
    @error = Hyperdrive::Errors::UnknownError.new
  end

  it "returns a 500 status code" do
    @error.http_status_code.must_equal 500
  end

  it "has a message" do
    @error.message.must_match(/Unknown/)
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
hyperdrive-0.0.25 spec/hyperdrive/errors/unknown_error_spec.rb
hyperdrive-0.0.24 spec/hyperdrive/errors/unknown_error_spec.rb
hyperdrive-0.0.23 spec/hyperdrive/errors/unknown_error_spec.rb
hyperdrive-0.0.22 spec/hyperdrive/errors/unknown_error_spec.rb
hyperdrive-0.0.21 spec/hyperdrive/errors/unknown_error_spec.rb
hyperdrive-0.0.20 spec/hyperdrive/errors/unknown_error_spec.rb
hyperdrive-0.0.19 spec/hyperdrive/errors/unknown_error_spec.rb
hyperdrive-0.0.18 spec/hyperdrive/errors/unknown_error_spec.rb
hyperdrive-0.0.17 spec/hyperdrive/errors/unknown_error_spec.rb
hyperdrive-0.0.16 spec/hyperdrive/errors/unknown_error_spec.rb
hyperdrive-0.0.15 spec/hyperdrive/errors/unknown_error_spec.rb
hyperdrive-0.0.14 spec/hyperdrive/errors/unknown_error_spec.rb
hyperdrive-0.0.13 spec/hyperdrive/errors/unknown_error_spec.rb
hyperdrive-0.0.12 spec/hyperdrive/errors/unknown_error_spec.rb
hyperdrive-0.0.11 spec/hyperdrive/errors/unknown_error_spec.rb
hyperdrive-0.0.10 spec/hyperdrive/errors/unknown_error_spec.rb
hyperdrive-0.0.9 spec/hyperdrive/errors/unknown_error_spec.rb
hyperdrive-0.0.8 spec/hyperdrive/errors/unknown_error_spec.rb