Sha256: 1df42de227899d670db40eb09cf46afa456c5d9eb31f41ce6820e6460349672e

Contents?: true

Size: 641 Bytes

Versions: 3

Compression:

Stored size: 641 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 =~ %r{fonts/vapor-[a-f0-9]{32}\.eot\?#iefix}
        css.should =~ %r{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

3 entries across 3 versions & 1 rubygems

Version Path
jekyll-assets-0.7.6 spec/lib/jekyll/assets_plugin/environment_spec.rb
jekyll-assets-0.7.5 spec/lib/jekyll/assets_plugin/environment_spec.rb
jekyll-assets-0.7.4 spec/lib/jekyll/assets_plugin/environment_spec.rb