Sha256: c94ca2654b54d87f9cd0d5ef391c6c17fbe70d34824f54435c5b09c64096a241
Contents?: true
Size: 707 Bytes
Versions: 1
Compression:
Stored size: 707 Bytes
Contents
# frozen_string_literal: true require "rails_helper" module Archangel module Liquid module Tags RSpec.describe ThemeJavascriptTag, type: :liquid_tag, disable: :verify_partial_doubles do before { create(:site) } let(:context) { ::Liquid::Context.new({}, {}, view: view) } it "renders Javascript tag for theme" do allow(view).to receive(:current_theme).and_return("default") result = ::Liquid::Template.parse("{% theme_javascript %}") .render(context) expect(result).to include('<script src="/assets/default/frontend') end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
archangel-0.0.2 | spec/lib/archangel/liquid/tags/theme_javascript_tag_spec.rb |