Sha256: 54b6906fd4f60bf690fdc2a8f134d21bfc736f1a36680d19ebd3923c46ca86be
Contents?: true
Size: 654 Bytes
Versions: 4
Compression:
Stored size: 654 Bytes
Contents
require 'test_helper' class TwurlTest < Test::Unit::TestCase context "Using twurl.nl" do setup do FakeWeb.register_uri(:post, "http://tweetburner.com/links?link[url]=http%3A%2F%2Fgoogle.com", :body => File.join(File.dirname(__FILE__), 'fixtures', 'twurl-shorten-google.txt')) end should "return a shortened url (class method)" do assert_equal 'http://twurl.nl/jnlwyb', Shorty::Twurl.shorten('http://google.com') end should "return a shortened url (instance method)" do @twurl = Shorty::Twurl.new assert_equal 'http://twurl.nl/jnlwyb', @twurl.shorten('http://google.com') end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
drcapulet-shorty-0.1.0 | test/twurl_test.rb |
drcapulet-shorty-0.1.1 | test/twurl_test.rb |
shorty-0.1.2 | test/twurl_test.rb |
shorty-0.1.1 | test/twurl_test.rb |