Sha256: 8c00c85a8b09d8470ff12a58d1bb7a09779d975a6750ae6b9c002633e8577bac

Contents?: true

Size: 399 Bytes

Versions: 2

Compression:

Stored size: 399 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

2 entries across 2 versions & 1 rubygems

Version Path
presenting-2.0.0 test/sanitize_test.rb
presenting-1.0.0 test/sanitize_test.rb