Sha256: 212fbab63648f6c80a2daea4577a40af6889053a0157fea1ad9e5a10e54edf57

Contents?: true

Size: 646 Bytes

Versions: 1

Compression:

Stored size: 646 Bytes

Contents

require "spec_helper"

module Jekyll::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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-assets-0.7.7 spec/lib/jekyll/assets_plugin/environment_spec.rb