Sha256: 6c28ec821f2a9ab45b81617ffdead35b4c506290dd58361d2bd751a2ab59d82b

Contents?: true

Size: 1.29 KB

Versions: 16

Compression:

Stored size: 1.29 KB

Contents

require 'spec_helper'

describe Landable::Liquid do

  specify 'registered tags' do
    Liquid::Template.tags['title_tag'].should              == Landable::Liquid::TitleTag
    Liquid::Template.tags['meta_tags'].should              == Landable::Liquid::MetaTag
    Liquid::Template.tags['head_content'].should           == Landable::Liquid::HeadContent
    Liquid::Template.tags['head'].should                   == Landable::Liquid::Head
    Liquid::Template.tags['body'].should                   == Landable::Liquid::Body
    Liquid::Template.tags['img_tag'].should                == Landable::Liquid::AssetTag
    Liquid::Template.tags['image_tag'].should              == Landable::Liquid::AssetTag
    Liquid::Template.tags['javascript_include_tag'].should == Landable::Liquid::AssetTag
    Liquid::Template.tags['stylesheet_link_tag'].should    == Landable::Liquid::AssetTag
    Liquid::Template.tags['asset_url'].should              == Landable::Liquid::AssetAttributeTag
    Liquid::Template.tags['asset_description'].should      == Landable::Liquid::AssetAttributeTag
    Liquid::Template.tags['template'].should               == Landable::Liquid::TemplateTag
  end

  specify 'registered filters' do
    Liquid::Strainer.class_variable_get(:@@known_filters).should include(Landable::Liquid::DefaultFilter)
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
landable-1.13.1 spec/lib/landable/liquid_spec.rb
landable-1.12.3 spec/lib/landable/liquid_spec.rb
landable-1.12.2 spec/lib/landable/liquid_spec.rb
landable-1.12.1 spec/lib/landable/liquid_spec.rb
landable-1.11.1 spec/lib/landable/liquid_spec.rb
landable-1.11.0 spec/lib/landable/liquid_spec.rb
landable-1.10.0.rc2 spec/lib/landable/liquid_spec.rb
landable-1.10.0.rc1 spec/lib/landable/liquid_spec.rb
landable-1.9.2 spec/lib/landable/liquid_spec.rb
landable-1.9.1 spec/lib/landable/liquid_spec.rb
landable-1.9.0 spec/lib/landable/liquid_spec.rb
landable-1.9.0.rc2 spec/lib/landable/liquid_spec.rb
landable-1.9.0.rc1 spec/lib/landable/liquid_spec.rb
landable-1.8.0 spec/lib/landable/liquid_spec.rb
landable-1.7.1.rc1 spec/lib/landable/liquid_spec.rb
landable-1.7.0 spec/lib/landable/liquid_spec.rb