Sha256: b606f3d1bb96bd19ed25e67d9fab644e71eebd81b0b32a3aae510b83e90949c9
Contents?: true
Size: 462 Bytes
Versions: 2
Compression:
Stored size: 462 Bytes
Contents
require 'spec_helper' describe Grape::Exceptions::MissingMimeType do describe "#message" do let(:error) do described_class.new("new_json") end it "contains the problem in the message" do error.message.should include "missing mime type for new_json" end it "contains the resolution in the message" do error.message.should include "or add your own with content_type :new_json, 'application/new_json' " end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
grape-0.7.0 | spec/grape/exceptions/missing_mime_type_spec.rb |
grape-0.6.1 | spec/grape/exceptions/missing_mime_type_spec.rb |