Sha256: b273eb729b41cea4e911213c4fdcb2794005d6a2c9fe014895047fec651e6737
Contents?: true
Size: 647 Bytes
Versions: 136
Compression:
Stored size: 647 Bytes
Contents
# encoding: utf-8 require "spec_helper" require "logstash/api/errors" describe LogStash::Api::ApiError do subject { described_class.new } it "#status_code returns 500" do expect(subject.status_code).to eq(500) end it "#to_hash return the message of the exception" do expect(subject.to_hash).to include(:message => "Api Error") end end describe LogStash::Api::NotFoundError do subject { described_class.new } it "#status_code returns 404" do expect(subject.status_code).to eq(404) end it "#to_hash return the message of the exception" do expect(subject.to_hash).to include(:message => "Not Found") end end
Version data entries
136 entries across 136 versions & 6 rubygems