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

Version Path
geo_works-0.2.0 spec/services/geo_works/discovery/abstract_document_spec.rb
geo_works-0.1.4 spec/services/geo_works/discovery/abstract_document_spec.rb
geo_works-0.1.3 spec/services/geo_works/discovery/abstract_document_spec.rb
geo_works-0.1.2 spec/services/geo_works/discovery/abstract_document_spec.rb
geo_works-0.1.1 spec/services/geo_works/discovery/abstract_document_spec.rb
geo_works-0.1.0 spec/services/geo_works/discovery/abstract_document_spec.rb