Sha256: 742ab72e3347cde580d3904e6111ed7efb74f2c8bb15942c67484e9d8aa72452
Contents?: true
Size: 487 Bytes
Versions: 7
Compression:
Stored size: 487 Bytes
Contents
shared_examples_for "image DSL method" do let(:path) { Shoes::DIR + '/static/shoes-icon.png' } let(:opts) { {} } let(:image) { dsl.image path, opts } it 'should set the path' do expect(image.file_path).to eq(path) end context 'with :top and :left style attributes' do let(:opts) { {left: 55, top: 66} } it 'should set the left' do expect(image.left).to eq(55) end it 'should set the top' do expect(image.top).to eq(66) end end end
Version data entries
7 entries across 7 versions & 3 rubygems