14 lines
335 B
Ruby
14 lines
335 B
Ruby
|
# coding: utf-8
|
||
|
require 'spec_helper'
|
||
|
|
||
|
describe DeferScriptTagHelper do
|
||
|
describe 'script tag' do
|
||
|
script_url = 'test.js'
|
||
|
|
||
|
it 'returns an script tag with defer=true' do
|
||
|
expect(javascript_include_tag(script_url).to_s)
|
||
|
.to eq "<script src=\"/javascripts/#{script_url}\" defer=\"defer\"></script>"
|
||
|
end
|
||
|
end
|
||
|
end
|