Sha256: cb47961fb234fdd3cd9e3a2275a5013b89d4e094d61a497dabab46936d094de3
Contents?: true
Size: 712 Bytes
Versions: 8
Compression:
Stored size: 712 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Github::Error::UnknownMedia do describe '#message' do let(:error) { described_class.new('README.md') } it 'contains the problem in the message' do error.message.should include "Unknown content type for: 'README.md' provided for this request." end it 'contains the summary in the message' do error.message.should include "Github gem infers the content type of the resource by calling the mime-types gem type inference." end it 'contains the resolution in the message' do error.message.should include "Please install mime-types gem to infer the resource content type." end end end # Github::Error::UnkownMedia
Version data entries
8 entries across 8 versions & 1 rubygems