Sha256: 1885be2b06669af7231fc52aa3ab88299b95aec1c17c1495e5b34f639d7f0187

Contents?: true

Size: 319 Bytes

Versions: 12

Compression:

Stored size: 319 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

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

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hyperdrive-0.0.25 spec/hyperdrive/errors/json_parse_error_spec.rb
hyperdrive-0.0.24 spec/hyperdrive/errors/json_parse_error_spec.rb
hyperdrive-0.0.23 spec/hyperdrive/errors/json_parse_error_spec.rb
hyperdrive-0.0.22 spec/hyperdrive/errors/json_parse_error_spec.rb
hyperdrive-0.0.21 spec/hyperdrive/errors/json_parse_error_spec.rb
hyperdrive-0.0.20 spec/hyperdrive/errors/json_parse_error_spec.rb
hyperdrive-0.0.19 spec/hyperdrive/errors/json_parse_error_spec.rb
hyperdrive-0.0.18 spec/hyperdrive/errors/json_parse_error_spec.rb
hyperdrive-0.0.17 spec/hyperdrive/errors/json_parse_error_spec.rb
hyperdrive-0.0.16 spec/hyperdrive/errors/json_parse_error_spec.rb
hyperdrive-0.0.15 spec/hyperdrive/errors/json_parse_error_spec.rb
hyperdrive-0.0.14 spec/hyperdrive/errors/json_parse_error_spec.rb