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

Version Path
archangel-0.3.0 spec/lib/archangel/liquid/tags/meta_tags_tag_spec.rb
archangel-0.0.8 spec/lib/archangel/liquid/tags/meta_tags_tag_spec.rb
archangel-0.0.7 spec/lib/archangel/liquid/tags/meta_tags_tag_spec.rb
archangel-0.0.6 spec/lib/archangel/liquid/tags/meta_tags_tag_spec.rb
archangel-0.0.5 spec/lib/archangel/liquid/tags/meta_tags_tag_spec.rb
archangel-0.0.4 spec/lib/archangel/liquid/tags/meta_tags_tag_spec.rb
archangel-0.0.3 spec/lib/archangel/liquid/tags/meta_tags_tag_spec.rb
archangel-0.0.2 spec/lib/archangel/liquid/tags/meta_tags_tag_spec.rb