Sha256: 3bbbca5a670bfda1f633fbba887b880d67b563a1bcebf7d072a13af1c5bd632a

Contents?: true

Size: 414 Bytes

Versions: 5

Compression:

Stored size: 414 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper'

class Presenting::SanitizeTest < Presenting::Test
  def test_sanitizing_an_array
    assert_equal ['&amp;'], Presenting::Sanitize.h(['&'])
  end
  
  def test_sanitizing_a_hash
    assert_equal({'<' => '>'}, Presenting::Sanitize.h({'<' => '>'}))
  end
  
  def test_sanitizing_a_string
    assert_equal '&amp;', Presenting::Sanitize.h('&')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
presenting-3.0.0 test/sanitize_test.rb
presenting-2.1.0 test/sanitize_test.rb
presenting-2.0.3 test/sanitize_test.rb
presenting-2.0.2 test/sanitize_test.rb
presenting-2.0.1 test/sanitize_test.rb