test/lib/vedeu/colours/colour_translator_test.rb in vedeu-0.5.5 vs test/lib/vedeu/colours/colour_translator_test.rb in vedeu-0.5.6
- old
+ new
@@ -54,9 +54,23 @@
it { subject.must_be_instance_of(Vedeu::ColourTranslator) }
end
end
+ describe '#empty?' do
+ subject { instance.empty? }
+
+ context 'when there is no colour' do
+ let(:colour) {}
+
+ it { subject.must_equal(true) }
+ end
+
+ context 'when there is a colour' do
+ it { subject.must_equal(false) }
+ end
+ end
+
describe '#eql?' do
let(:other) { instance }
subject { instance.eql?(other) }