Sha256: f0d6d2bef1ea10844013cfcddbac99f68c7680c481c111120bbe91eb03b298de

Contents?: true

Size: 434 Bytes

Versions: 4

Compression:

Stored size: 434 Bytes

Contents

require 'test_helper'

class DefaultURLTest < Test::Unit::TestCase
  def setup
    @base_url = 'http://google.com'
    @youtube_url = 'http://www.youtube.com/watch?v=bNlNZ2T9EeY'
  end

  def test_default_url_returns_always_the_same
    assert_equal(FormattedURL.url(@base_url, :default) ,@base_url)
    [:short, :embed, :default].each do |format|
      assert_equal(FormattedURL.url(@base_url, format) ,@base_url)
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
formatted_url-0.0.6 test/default_url_test.rb
formatted_url-0.0.5 test/default_url_test.rb
formatted_url-0.0.4 test/default_url_test.rb
formatted_url-0.0.3 test/default_url_test.rb