test/lib/vedeu/colours/colour_test.rb in vedeu-0.6.51 vs test/lib/vedeu/colours/colour_test.rb in vedeu-0.6.52

- old
+ new

@@ -17,25 +17,14 @@ let(:background) {} let(:foreground) {} describe '#initialize' do it { instance.must_be_instance_of(described) } - it { - instance.instance_variable_get('@background'). - must_be_instance_of(Vedeu::Colours::Background) - } - it { - instance.instance_variable_get('@foreground'). - must_be_instance_of(Vedeu::Colours::Foreground) - } + it { instance.instance_variable_get('@background').must_equal(background)} + it { instance.instance_variable_get('@foreground').must_equal(foreground)} end - describe 'accessors' do - it { instance.must_respond_to(:background) } - it { instance.must_respond_to(:foreground) } - end - describe '.coerce' do let(:attributes) { { background: background, foreground: foreground, @@ -185,10 +174,14 @@ it { subject.must_be_instance_of(Hash) } it { subject.must_equal(expected) } end + describe '#background' do + # @todo Add more tests. + end + describe '#background=' do let(:_value) { '#000000' } subject { instance.public_send(:background=, _value) } @@ -205,9 +198,13 @@ context 'when different to other' do let(:other) { described.new(background: '#ff0000') } it { subject.must_equal(false) } end + end + + describe '#foreground' do + # @todo Add more tests. end describe '#foreground=' do let(:_value) { '#ff0000' }