test/lib/vedeu/models/presentation_test.rb in vedeu-0.0.33 vs test/lib/vedeu/models/presentation_test.rb in vedeu-0.0.34
- old
+ new
@@ -5,23 +5,27 @@
class TestPresentation
include Presentation
end
describe Presentation do
+ let(:presentation) {
+ TestPresentation.new({
+ colour: {
+ foreground: '#ff0000',
+ background: '#333333'
+ },
+ style: ['bold', 'underline']
+ })
+ }
+
describe '#colour' do
it 'returns a Colour instance' do
- presentation = TestPresentation.new({
- colour: { foreground: '#ff0000', background: '#333333' }
- })
presentation.colour.must_be_instance_of(Colour)
end
end
describe '#style' do
it 'has a style attribute' do
- presentation = TestPresentation.new({
- style: ['bold', 'underline']
- })
presentation.style.must_equal(['bold', 'underline'])
end
end
end
end