Sha256: a0166cbc48e27d52a41193d66e720609342ce736e83840f8b9d140159faeb39a

Contents?: true

Size: 852 Bytes

Versions: 13

Compression:

Stored size: 852 Bytes

Contents

module Relaton
  class TestProcessor < Relaton::Processor
    def initialize; end
  end
end

RSpec.describe Relaton::Processor do
  it "initialize should be implemented" do
    expect { Relaton::Processor.new }.to raise_error StandardError
  end

  context "instance of processor" do
    subject { Relaton::TestProcessor.new }

    it "get method should be implemented" do
      expect { subject.get "code", nil, {} }.to raise_error StandardError
    end

    it "from_xml method should be implemented" do
      expect { subject.from_xml "" }.to raise_error StandardError
    end

    it "hash_to_bib method should be implemented" do
      expect { subject.hash_to_bib({}) }.to raise_error StandardError
    end

    it "grammar_hash method should be implemented" do
      expect { subject.grammar_hash }.to raise_error StandardError
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
relaton-1.9.0 spec/relaton/processor_spec.rb
relaton-1.8.pre4 spec/relaton/processor_spec.rb
relaton-1.8.pre3 spec/relaton/processor_spec.rb
relaton-1.8.pre2 spec/relaton/processor_spec.rb
relaton-1.8.1 spec/relaton/processor_spec.rb
relaton-1.8.0 spec/relaton/processor_spec.rb
relaton-1.7.9 spec/relaton/processor_spec.rb
relaton-1.7.8 spec/relaton/processor_spec.rb
relaton-1.7.7 spec/relaton/processor_spec.rb
relaton-1.7.pre7 spec/relaton/processor_spec.rb
relaton-1.7.6 spec/relaton/processor_spec.rb
relaton-1.7.5 spec/relaton/processor_spec.rb
relaton-1.7.4 spec/relaton/processor_spec.rb