test/lib/vedeu/colours/colour_test.rb in vedeu-0.6.45 vs test/lib/vedeu/colours/colour_test.rb in vedeu-0.6.46
- old
+ new
@@ -171,9 +171,23 @@
subject { described.default }
it { subject.must_be_instance_of(Vedeu::Colours::Colour) }
end
+ describe '#attributes' do
+ let(:expected) {
+ {
+ background: Vedeu::Colours::Background.new,
+ foreground: Vedeu::Colours::Foreground.new,
+ }
+ }
+
+ subject { instance.attributes }
+
+ it { subject.must_be_instance_of(Hash) }
+ it { subject.must_equal(expected) }
+ end
+
describe '#background=' do
let(:_value) { '#000000' }
subject { instance.public_send(:background=, _value) }