Sha256: 08af42efc7f36fc25a5982d442532bc39e5d935113aac41049bb8bdece9af1b0
Contents?: true
Size: 681 Bytes
Versions: 5
Compression:
Stored size: 681 Bytes
Contents
require 'spec_helper' describe Kms::TemplateProcessor, type: :service do describe '#process' do let(:template) { FactoryGirl.build(:template) } subject { Kms::TemplateProcessor.new(template) } it "substitutes <script src> with {{ ... asset_tag }}" do expect(subject.process).to include("{{ 'compressed.js' | asset_tag }}") end it "substitutes <link rel='stylesheet'> with {{ ... asset_tag }}" do expect(subject.process).to include("{{ 'fonts.css' | asset_tag }}") end it "substitutes <img src=...> with <img src='{{ ... | asset_path }}'>" do expect(subject.process).to include("{{ 'slide.jpg' | asset_path }}") end end end
Version data entries
5 entries across 5 versions & 1 rubygems