test/lib/vedeu/dsl/shared/colour_test.rb in vedeu-0.3.4 vs test/lib/vedeu/dsl/shared/colour_test.rb in vedeu-0.3.5

- old
+ new

@@ -22,23 +22,12 @@ subject.attributes.must_equal( { background: '#00ff00', foreground: '' } ) end - context 'alias method #bg' do - subject { dsl_klass.bg(background) } - - it { subject.attributes. - must_equal({ background: '#00ff00', foreground: '' }) } - end - - context 'alias method #bgcolor' do - subject { dsl_klass.bgcolor(background) } - - it { subject.attributes. - must_equal({ background: '#00ff00', foreground: '' }) } - end + it { dsl_klass.must_respond_to(:bg) } + it { dsl_klass.must_respond_to(:bgcolor) } end describe '#foreground' do subject { dsl_klass.foreground(foreground) } @@ -48,22 +37,11 @@ subject.attributes.must_equal( { background: '', foreground: '#ff00ff' } ) end - context 'alias method #fg' do - subject { dsl_klass.fg(foreground) } - - it { subject.attributes. - must_equal({ background: '', foreground: '#ff00ff' }) } - end - - context 'alias method #fgcolor' do - subject { dsl_klass.fgcolor(foreground) } - - it { subject.attributes. - must_equal({ background: '', foreground: '#ff00ff' }) } - end + it { dsl_klass.must_respond_to(:fg) } + it { dsl_klass.must_respond_to(:fgcolor) } end describe '#colour' do let(:attributes) { { background: background, foreground: foreground } }