Sha256: 315f9369b78830b3f28af3774d06eabfddf13006cdad9c8ef3edcb4927a187ea
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 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 image.file_path.should == path end context 'with :top and :left style attributes' do let(:opts) { {left: 55, top: 66} } it 'should set the left' do image.left.should == 55 end it 'should set the top' do image.top.should == 66 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.pre1 | spec/shoes/shared_examples/dsl/image.rb |