test/lib/vedeu/dsl/shared/colour_test.rb in vedeu-0.4.13 vs test/lib/vedeu/dsl/shared/colour_test.rb in vedeu-0.4.14
- old
+ new
@@ -24,11 +24,11 @@
it { subject.must_be_instance_of(Vedeu::Colour) }
it 'sets the background' do
subject.attributes.must_equal(
- { background: '#00ff00', foreground: '' }
+ background: '#00ff00', foreground: ''
)
end
end
describe '#foreground' do
@@ -36,11 +36,11 @@
it { subject.must_be_instance_of(Vedeu::Colour) }
it 'sets the foreground' do
subject.attributes.must_equal(
- { background: '', foreground: '#ff00ff' }
+ background: '', foreground: '#ff00ff'
)
end
end
describe '#colour' do
@@ -53,20 +53,20 @@
context 'with an invalid attribute' do
let(:attributes) { { invalid: background, foreground: foreground } }
it 'sets only the valid attributes' do
subject.attributes.must_equal(
- { background: '', foreground: '#ff00ff' }
+ background: '', foreground: '#ff00ff'
)
end
end
context 'with an empty value' do
let(:attributes) { { background: background, foreground: '' } }
it 'sets only the valid attributes' do
subject.attributes.must_equal(
- { background: '#00ff00', foreground: '' }
+ background: '#00ff00', foreground: ''
)
end
end
end