Sha256: 45da98b56124c29f658864b0af2d060c587e546d457b483b555a3d8c906137eb
Contents?: true
Size: 381 Bytes
Versions: 1
Compression:
Stored size: 381 Bytes
Contents
require 'spec_helper' describe ApplicationHelper, :type => :helper do it 'adds size to images' do tag = helper.image_tag('rails.png') tag.should match('height="64"') tag.should match('width="50"') end it "works with a missing image" do tag = helper.image_tag('missing.png') tag.should_not match('height=') tag.should_not match('width=') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dimensions-rails-1.0.2 | spec/helper/dimensions-rails_spec.rb |