require 'spec_helper' describe ActionView::Helpers::AssetTagHelper, :type => :helper do subject { helper } describe :image_tag do context 'with retina option' do it { subject.image_tag('image.png', :retina => true).should == 'Image' } it { subject.image_tag('image.some.png', :retina => true).should == 'Image.some' } end context 'without retina' do it { subject.image_tag('image.png').should == 'Image' } end end end