Sha256: 8283ada72f13572496302bf324a959006046736bd128948a4af6912e23140299

Contents?: true

Size: 690 Bytes

Versions: 4

Compression:

Stored size: 690 Bytes

Contents

require "spec_helper"

module Jekyll
  module AssetsPlugin
    describe Environment do
      context "#asset_path of context" do
        it "should properly handle query params" do
          css = @site.assets["vapor.css"].to_s
          css.should match(/fonts\/vapor-[a-f0-9]{32}\.eot\?#iefix/)
          css.should match(/fonts\/vapor-[a-f0-9]{32}\.svg#iefix/)
        end

        it "should properly handle relative paths" do
          css = @site.assets["lib/relative.css"].to_s
          css.should =~ %r{/assets/fonts/vapor-[a-f0-9]{32}\.eot\?#iefix}
          css.should =~ %r{/assets/fonts/vapor-[a-f0-9]{32}\.svg#iefix}
          puts css
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
tgfa-jekyll-assets-0.7.9.2 spec/lib/jekyll/assets_plugin/environment_spec.rb
tgfa-jekyll-assets-0.7.9.1 spec/lib/jekyll/assets_plugin/environment_spec.rb
jekyll-assets-0.7.9 spec/lib/jekyll/assets_plugin/environment_spec.rb
jekyll-assets-0.7.8 spec/lib/jekyll/assets_plugin/environment_spec.rb