Sha256: 9dff1714784ff17a1b73d50417902ebb77756385acfe343322f1d9197d7baac5

Contents?: true

Size: 382 Bytes

Versions: 3

Compression:

Stored size: 382 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

module BusinessCatalyst::CSV
  describe URITransformer do
    subject { URITransformer }

    it "does nothing to normal image paths" do
      expect(subject.transform("/images/test.png")).to eq("/images/test.png")
    end

    it "URI encodes input" do
      expect(subject.transform("test#2.png")).to eq("test%232.png")
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
business_catalyst-0.1.2 spec/lib/business_catalyst/csv/transformers/urI_transformer_spec.rb
business_catalyst-0.1.1 spec/lib/business_catalyst/csv/transformers/urI_transformer_spec.rb
business_catalyst-0.1.0 spec/lib/business_catalyst/csv/transformers/urI_transformer_spec.rb