[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request #56 from jhnvz/test/image-tag-options
Browse files Browse the repository at this point in the history
Test image tag options
  • Loading branch information
jhnvz committed Jan 19, 2015
2 parents 5fda93f + 2aa1959 commit d542d62
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/helpers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ def retina_dimensions
image.should_not include('default')
end

it 'should respect other options' do
image = helper.retina_image_tag(Upload.new, :avatar, :small, :default => { :width => 25, :height => 40 }, :alt => 'Some alt tag')

image.should include('alt="Some alt tag"')
end

end

end
Expand All @@ -108,4 +114,4 @@ def retina_dimensions

end

end
end

0 comments on commit d542d62

Please sign in to comment.