spec/sprockets-helpers_spec.rb in sprockets-helpers-1.0.1 vs spec/sprockets-helpers_spec.rb in sprockets-helpers-1.1.0

- old
+ new

@@ -520,9 +520,13 @@ it 'prepends the stylesheets dir' do expect(context.stylesheet_tag('main')).to eq('<link rel="stylesheet" href="/stylesheets/main.css">') end + it 'uses media attribute when provided' do + expect(context.stylesheet_tag('main', :media => "print")).to eq('<link rel="stylesheet" href="/stylesheets/main.css" media="print">') + end + describe 'when expanding' do it 'generates stylesheet tag for each stylesheet asset' do within_construct do |construct| assets_layout(construct) tags = context.stylesheet_tag('main.css', :expand => true)