Sha256: 5c459a724280a3c84fcf63b29bc4adc4dd96fd8a8869d85650b2875d3079854f
Contents?: true
Size: 660 Bytes
Versions: 14
Compression:
Stored size: 660 Bytes
Contents
require 'spec_helper' describe GeoConcerns::Discovery::AbstractDocument do subject { described_class.new } describe '#to_hash' do it 'raises an error because the class should not be instantiated directly' do expect { subject.to_hash(nil) }.to raise_error(/hash/) end end describe '#to_json' do it 'raises an error because the class should not be instantiated directly' do expect { subject.to_json(nil) }.to raise_error(/json/) end end describe '#to_xml' do it 'raises an error because the class should not be instantiated directly' do expect { subject.to_xml(nil) }.to raise_error(/xml/) end end end
Version data entries
14 entries across 14 versions & 1 rubygems