test/lib/vedeu/colours/colour_test.rb in vedeu-0.6.8 vs test/lib/vedeu/colours/colour_test.rb in vedeu-0.6.9
- old
+ new
@@ -168,13 +168,13 @@
end
describe '#background=' do
let(:_value) { '#000000' }
- subject { instance.background = (_value) }
+ subject { instance.public_send(:background=, _value) }
- it { subject.must_equal(_value) }
+ it { subject.must_be_instance_of(Vedeu::Colours::Background) }
end
describe '#eql?' do
let(:other) { instance }
@@ -190,12 +190,12 @@
end
describe '#foreground=' do
let(:_value) { '#ff0000' }
- subject { instance.foreground = (_value) }
+ subject { instance.public_send(:foreground=, _value) }
- it { subject.must_equal(_value) }
+ it { subject.must_be_instance_of(Vedeu::Colours::Foreground) }
end
describe '#to_s' do
subject { instance.to_s }