Sha256: a4439be6fc692563188e125e33b7ed5a321fcc5411b2ffd2a4adcbae4ad250ff
Contents?: true
Size: 527 Bytes
Versions: 3
Compression:
Stored size: 527 Bytes
Contents
require 'helper' describe Octospy::Url do let(:url) { 'https://github.com/linyows/octospy' } describe '.shorten_by_github', :vcr do subject { described_class.shorten_by_github url } it { expect(subject).to be_an_instance_of String } it { expect(subject).to eq 'http://git.io/Pd8gXg' } end describe '.shorten_by_google', :vcr do subject { described_class.shorten_by_google url } it { expect(subject).to be_an_instance_of String } it { expect(subject).to eq 'http://goo.gl/8vrLj' } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
octospy-0.2.0 | spec/octospy/url_spec.rb |
octospy-0.1.1 | spec/octospy/url_spec.rb |
octospy-0.1.0 | spec/octospy/url_spec.rb |