Guest User

Untitled

a guest
Jul 29th, 2012
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. require 'spec_helper'
  2.  
  3. describe Api::TracksController do
  4.  
  5. let(:tracks) { FactoryGirl.create_list(:track, 10) }
  6.  
  7. describe '#index' do
  8.  
  9. it 'should respond with all tracks as JSON' do
  10. json_tracks = tracks.to_json
  11.  
  12. get :index
  13.  
  14. response.body.should == json_tracks
  15. end
  16.  
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment