Sha256: 3baea009346a6e01ae90f2ea9747d03dd605f072f61675042179452a4422733a
Contents?: true
Size: 529 Bytes
Versions: 4
Compression:
Stored size: 529 Bytes
Contents
require 'test_helper' module MongoidShortener class ShortenedUrlsHelperTest < ActionView::TestCase test "shortened invalid url" do assert_nil shortened_url("haha") end test "shorten valid url" do assert_equal("http://localhost:3000/~0", shortened_url("http://google.com")) end test "shorten two same url" do assert_equal("http://localhost:3000/~0", shortened_url("http://google.com")) assert_equal("http://localhost:3000/~0", shortened_url("http://google.com")) end end end
Version data entries
4 entries across 4 versions & 1 rubygems