Sha256: 732add434f35e853696b8f322324ea221ba4096e6f1286f9770294827af7ce99
Contents?: true
Size: 750 Bytes
Versions: 3
Compression:
Stored size: 750 Bytes
Contents
require "non-stupid-digest-assets" RSpec.describe SharingTags::ActionView::AssetHelper, :type => :helper do describe "#without_digest_asset_url" do before do SharingTags.configure do image "http://img.png" end end let(:image) { "image_path/image.png" } subject { helper.without_digest_asset_url(image) } it "expect exist method" do expect(helper).to be_respond_to(:without_digest_asset_url) end it "expect return non digested url" do is_expected.to be_eql("http://test.host/image_path/image.png") end it "add to non digest gem" do NonStupidDigestAssets.whitelist = [] expect{ is_expected }.to change(::NonStupidDigestAssets, :whitelist) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sharing_tags-0.0.7 | spec/helpers/asset_helper_spec.rb |
sharing_tags-0.0.6 | spec/helpers/asset_helper_spec.rb |
sharing_tags-0.0.5 | spec/helpers/asset_helper_spec.rb |