Sha256: 0c998fe6744af7a98568ed7f2cbfbf1964d2a78f62f8f45d570d12ff93f65aee
Contents?: true
Size: 1.86 KB
Versions: 5
Compression:
Stored size: 1.86 KB
Contents
require 'test_helper' module Vedeu module API describe '#views' do it 'allows multiple views to be defined at once' do Vedeu.views do view 'view_1' do line do text '1. A line of text in view 1.' text '2. Another line of text in view 1.' end end view 'view_2' do line do text '1. A line of text in view 2.' text '2. Another line of text in view 2.' end end end.must_equal( { interfaces: [ { name: "view_1", group: "", lines: [ { colour: {}, streams: [ { text: "1. A line of text in view 1." }, { text: "2. Another line of text in view 1." } ], style: [] } ], colour: {}, style: "", geometry: {}, cursor: true, delay: 0.0 }, { name: "view_2", group: "", lines: [ { colour: {}, streams: [ { text: "1. A line of text in view 2." }, { text: "2. Another line of text in view 2." } ], style: [] } ], colour: {}, style: "", geometry: {}, cursor: true, delay: 0.0 } ] } ) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems