Sha256: e052cdd07a3019f1b634b712994c87925e2d35aa187944bb350733d6c51fea4d

Contents?: true

Size: 861 Bytes

Versions: 15

Compression:

Stored size: 861 Bytes

Contents

# frozen_string_literal: true

require 'test_helper'

module Vedeu

  module Coercers

    describe Coercer do

      let(:described)  { Vedeu::Coercers::Coercer }
      let(:instance)   { described.new(_value, attributes) }
      let(:_value)     {}
      let(:attributes) {
        {}
      }

      describe '#initialize' do
        it { instance.must_be_instance_of(described) }
        it { instance.instance_variable_get('@value').must_equal(_value) }
        it do
          instance.instance_variable_get('@attributes').must_equal(attributes)
        end
      end

      describe '.coerce' do
        it { described.must_respond_to(:coerce) }
      end

      describe '#coerce' do
        subject { instance.coerce }

        it { proc { subject }.must_raise(Vedeu::Error::NotImplemented) }
      end

    end # Coercer

  end # Coercers

end # Vedeu

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
vedeu-0.8.32 test/lib/vedeu/coercers/coercer_test.rb
vedeu-0.8.31 test/lib/vedeu/coercers/coercer_test.rb
vedeu-0.8.30 test/lib/vedeu/coercers/coercer_test.rb
vedeu-0.8.29 test/lib/vedeu/coercers/coercer_test.rb
vedeu-0.8.28 test/lib/vedeu/coercers/coercer_test.rb
vedeu-0.8.27 test/lib/vedeu/coercers/coercer_test.rb
vedeu-0.8.26 test/lib/vedeu/coercers/coercer_test.rb
vedeu-0.8.25 test/lib/vedeu/coercers/coercer_test.rb
vedeu-0.8.24 test/lib/vedeu/coercers/coercer_test.rb
vedeu-0.8.23 test/lib/vedeu/coercers/coercer_test.rb
vedeu-0.8.22 test/lib/vedeu/coercers/coercer_test.rb
vedeu-0.8.21 test/lib/vedeu/coercers/coercer_test.rb
vedeu-0.8.20 test/lib/vedeu/coercers/coercer_test.rb
vedeu-0.8.19 test/lib/vedeu/coercers/coercer_test.rb
vedeu-0.8.18 test/lib/vedeu/coercers/coercer_test.rb