Sha256: d9e9db1e6e62b84ffe9debef01d170c95655594e64a7e8a27fa1200e97f3cf49

Contents?: true

Size: 429 Bytes

Versions: 4

Compression:

Stored size: 429 Bytes

Contents

require 'spec_helper'

describe Locomotive::Steam::Liquid::Tags::GoogleAnalytics do

  let(:source) { "{% google_analytics 42 %}" }

  subject { render_template(source) }

  it { is_expected.to include "_gaq.push(['_setAccount', '42']);" }

  describe 'raises an error if the syntax is incorrect' do
    let(:source) { '{% google_analytics %}' }
    it { expect { subject }.to raise_exception(::Liquid::SyntaxError) }
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
locomotivecms_steam-1.0.0.pre.beta.3 spec/unit/liquid/tags/google_analytics_spec.rb
locomotivecms_steam-1.0.0.pre.beta.2 spec/unit/liquid/tags/google_analytics_spec.rb
locomotivecms_steam-1.0.0.pre.beta.1 spec/unit/liquid/tags/google_analytics_spec.rb
locomotivecms_steam-1.0.0.pre.alpha.3 spec/unit/liquid/tags/google_analytics_spec.rb