Sha256: c4fb48201a57659d256e3c6c83261113bd9ddb49c9e951a111b0f3ddf0f91713
Contents?: true
Size: 889 Bytes
Versions: 1
Compression:
Stored size: 889 Bytes
Contents
# frozen_string_literal: true require 'test_helper' module Vedeu module Coercers describe EditorLine do let(:described) { Vedeu::Coercers::EditorLine } let(:instance) { described.new(_value) } let(:_value) {} let(:klass) { Vedeu::Editor::Line } describe '#initialize' do it { instance.must_be_instance_of(described) } it { instance.instance_variable_get('@value').must_equal(_value) } end describe '.coerce' do it { described.must_respond_to(:coerce) } end describe '#coerce' do subject { instance.coerce } context 'when the value is already the target class' do let(:_value) { klass.new } it { subject.must_be_instance_of(klass) } it { subject.must_equal(_value) } end end end # EditorLine end # Coercers end # Vedeu
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.8.9 | test/lib/vedeu/coercers/editor_line_test.rb |