Guest User

Untitled

a guest
Jan 16th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. module ReusableBitlyLinks
  2. def shorten_url url, *args
  3. ShortenedUrl.shorten_url_with_bitly( url, email.user )
  4. end
  5. end
  6.  
  7. require File.expand_path("../../../../app/decorators/mixins/reusable_bitly_links", __FILE__)
  8.  
  9. include ReusableBitlyLinks
  10.  
  11. describe ReusableBitlyLinks do
  12.  
  13. describe "shorten_url" do
  14. it "works" do
  15. ReusableBitlyLinks.shorten_url('asdf').should == 'asdf'
  16. end
  17. end
  18. end
Add Comment
Please, Sign In to add comment