Sha256: 92999c4aaad148967649a6391608b6262db117c08567e644d27250d94bbb7c6b
Contents?: true
Size: 657 Bytes
Versions: 6
Compression:
Stored size: 657 Bytes
Contents
require 'spec_helper' describe GeoWorks::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
6 entries across 6 versions & 1 rubygems