Sha256: f8569443bfc852ccabc9d9d52fc57b36e6d060cb3cd56f3a5c3c73fc6c2368b6
Contents?: true
Size: 449 Bytes
Versions: 1
Compression:
Stored size: 449 Bytes
Contents
require 'rspec' require 'fakeweb' require 'pixy' FakeWeb.allow_net_connect = false url_to_shorten = "https%3A%2F%2Fgithub.com%2Fnarkoz%2Fpixy" FakeWeb.register_uri(:get, "http://p.tl/api/api_simple.php?key=API_KEY&url=#{url_to_shorten}", :body => { :status => 'ok', :long_url => 'https://github.com/narkoz/pixy', :short_url => 'http://p.tl/Us9R', :counter => 12 }.to_json)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pixy-0.0.2 | spec/spec_helper.rb |