Revision 07e49f8d23965e1b89ab76c9ee3441b4eb95dd3a authored by ashmaroli on 28 February 2018, 16:07:50 UTC, committed by jekyllbot on 28 February 2018, 16:07:50 UTC
1 parent 5748d6a
Raw File
test_data_reader.rb
# frozen_string_literal: true

require "helper"

class TestDataReader < JekyllUnitTest
  context "#sanitize_filename" do
    setup do
      @reader = DataReader.new(fixture_site)
    end

    should "remove evil characters" do
      assert_equal "helpwhathaveIdone", @reader.sanitize_filename(
        "help/what^&$^#*(!^%*!#haveId&&&&&&&&&one"
      )
    end
  end
end
back to top