Sha256: 22e8cd788162a03ec0bda193175cfbf0cd94f494fbc83dd1408b7fbab167b400

Contents?: true

Size: 974 Bytes

Versions: 3

Compression:

Stored size: 974 Bytes

Contents

require 'spec_helper'

class AssetUrlFilterKlass
  include Liquid::Rails::AssetUrlFilter
end

module Liquid
  module Rails
    describe AssetUrlFilter do
      subject { AssetUrlFilterKlass.new }

      it { should delegate(:asset_path).to(:__h__) }
      it { should delegate(:asset_url).to(:__h__) }

      it { should delegate(:audio_path).to(:__h__) }
      it { should delegate(:audio_url).to(:__h__) }

      it { should delegate(:font_path).to(:__h__) }
      it { should delegate(:font_url).to(:__h__) }

      it { should delegate(:image_path).to(:__h__) }
      it { should delegate(:image_url).to(:__h__) }

      it { should delegate(:javascript_path).to(:__h__) }
      it { should delegate(:javascript_url).to(:__h__) }

      it { should delegate(:stylesheet_path).to(:__h__) }
      it { should delegate(:stylesheet_url).to(:__h__) }

      it { should delegate(:video_path).to(:__h__) }
      it { should delegate(:video_url).to(:__h__) }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
liquid-rails-0.2.0 spec/lib/liquid-rails/filters/asset_url_filter_spec.rb
liquid-rails-0.2.0.beta1 spec/lib/liquid-rails/filters/asset_url_filter_spec.rb
liquid-rails-0.1.4 spec/lib/liquid-rails/filters/asset_url_filter_spec.rb