test/lib/vedeu/borders/dsl_test.rb in vedeu-0.6.48 vs test/lib/vedeu/borders/dsl_test.rb in vedeu-0.6.49
- old
+ new
@@ -171,22 +171,22 @@
describe '#title' do
let(:_value) { 'Some title'}
subject { instance.title(_value) }
- it { subject.must_be_instance_of(String) }
- it { subject.must_equal('Some title') }
+ it { subject.must_be_instance_of(Vedeu::Borders::Title) }
+ it { subject.title.must_equal('Some title') }
it { instance.must_respond_to(:title=) }
end
describe '#caption' do
let(:_value) { 'Some caption'}
subject { instance.caption(_value) }
- it { subject.must_be_instance_of(String) }
- it { subject.must_equal('Some caption') }
+ it { subject.must_be_instance_of(Vedeu::Borders::Caption) }
+ it { subject.caption.must_equal('Some caption') }
it { instance.must_respond_to(:caption=) }
end
describe '#top_left' do
let(:char) { 'A' }
@@ -221,10 +221,10 @@
subject { instance.use('other_border').title }
it 'allows the use of another models attributes' do
subject
- Vedeu.borders.by_name('other_border').title.must_equal('Some border')
+ Vedeu.borders.by_name('other_border').title.to_s.must_equal('Some border')
end
end
describe '#vertical' do
let(:char) { 'V' }