Welcome to mirror list, hosted at ThFree Co, Russian Federation.

defer_script_tag_helper_spec.rb « helpers « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d10b6f134e4ba7df84773fc49f7baa782cb7b402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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