Skip to content

Commit

Permalink
Add spec for issue #10
Browse files Browse the repository at this point in the history
Untested (written on iPad).
  • Loading branch information
felixbuenemann committed Sep 8, 2013
1 parent 3971afe commit e13993c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/helper/dimensions-rails_spec.rb
Expand Up @@ -24,4 +24,9 @@
tag.should_not match('height=')
tag.should_not match('width=')
end

it 'should not add dimensions attribute to image' do
tag = helper.image_tag('/outsiders/rails.png', :dimensions => false)
tag.should_not match('dimensions="false"')
end
end

0 comments on commit e13993c

Please sign in to comment.