Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module ReusableBitlyLinks
- def shorten_url url, *args
- ShortenedUrl.shorten_url_with_bitly( url, email.user )
- end
- end
- require File.expand_path("../../../../app/decorators/mixins/reusable_bitly_links", __FILE__)
- include ReusableBitlyLinks
- describe ReusableBitlyLinks do
- describe "shorten_url" do
- it "works" do
- ReusableBitlyLinks.shorten_url('asdf').should == 'asdf'
- end
- end
- end
Add Comment
Please, Sign In to add comment