Sha256: f094580528c4a871da8562a449f1026f32640942f6c38f4dd0f99ed6e48e71a2

Contents?: true

Size: 528 Bytes

Versions: 1

Compression:

Stored size: 528 Bytes

Contents

require File.expand_path('../../unit_test_helper', __FILE__)

class GistTest < Minitest::Test

  def test_transform
    result = auto_html('https://gist.github.com/1710276') { gist }
    assert_equal '<script type="text/javascript" src="https://gist.github.com/1710276.js"></script>', result
  end

  def test_transform_with_username
    result = auto_html('https://gist.github.com/toctan/6547840') { gist }
    assert_equal '<script type="text/javascript" src="https://gist.github.com/6547840.js"></script>', result
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
auto_html-whistlerbrk-2.0.0.pre test/unit/filters/gist_test.rb