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