test/lib/vedeu/common_test.rb in vedeu-0.6.71 vs test/lib/vedeu/common_test.rb in vedeu-0.7.0

- old
+ new

@@ -48,9 +48,19 @@ it { subject.must_equal(true) } end end + describe '#become' do + let(:instance) { Vedeu::Cells::Border.new } + let(:klass) { Vedeu::Cells::Char } + let(:attributes) { instance.attributes } + + subject { instance.become(klass, attributes) } + + it { subject.must_be_instance_of(Vedeu::Cells::Char) } + end + describe '#demodulize' do let(:klass) { described } subject { instance.demodulize(klass) }