test/lib/vedeu/colours/colour_test.rb in vedeu-0.6.71 vs test/lib/vedeu/colours/colour_test.rb in vedeu-0.7.0
- old
+ new
@@ -79,13 +79,11 @@
}
}
it { subject.foreground.colour.must_equal('') }
it { subject.background.colour.must_equal('#7700ff') }
- it {
- subject.to_s.must_equal("\e[48;2;119;0;255m")
- }
+ it { subject.to_s.must_equal("\e[48;2;119;0;255m") }
end
context 'and a :foreground is defined' do
let(:_value) {
{
@@ -95,12 +93,10 @@
}
}
it { subject.foreground.colour.must_equal('#220077') }
it { subject.background.colour.must_equal('') }
- it {
- subject.to_s.must_equal("\e[38;2;34;0;119m")
- }
+ it { subject.to_s.must_equal("\e[38;2;34;0;119m") }
end
context 'and neither a :background or :foreground is defined' do
let(:_value) {
{