Sha256: 35f35e26b7e40100148d635beda59a4af0a58fde96589ec7fa2dac467e8237bc
Contents?: true
Size: 645 Bytes
Versions: 8
Compression:
Stored size: 645 Bytes
Contents
# frozen_string_literal: true require "rails_helper" module Archangel module Liquid module Tags RSpec.describe MetaTagsTag, type: :liquid_tag, disable: :verify_partial_doubles do let(:context) { ::Liquid::Context.new({}, {}, view: view) } it "returns meta tags" do canonical = "<link rel=\"canonical\" href=\"http://localhost/\">" allow(view).to receive(:display_meta_tags).and_return(canonical) result = ::Liquid::Template.parse("{% meta_tags %}").render(context) expect(result).to eq(canonical) end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems