Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. require 'spec_helper'
  2.  
  3. describe V1::Public::ResourceRoar do
  4.  
  5. before do
  6. @resource = create(:resource)
  7. @resource.extend(V1::Public::ResourceRoar)
  8. @resource.path = path
  9. @resource.to_json
  10. end
  11.  
  12. context 'When a resource_id is provided' do
  13. it 'returns a self a link' do
  14. puts "#{@resource.schedule.schedule_prices} XX"
  15. expect(@resource).to have_links(%w{self items address})
  16. end
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement