Implement tracks/show in AP

This commit is contained in:
Thibault Jouan
2015-05-02 00:11:52 +00:00
parent aaca5bf1d9
commit 6001cd2e79
4 changed files with 19 additions and 1 deletions

View File

@@ -20,4 +20,14 @@ describe 'API tracks' do
}
]
end
it 'shows a track' do
track = create :track
get api_track_path track, format: :json
expect(json).to match(
id: track.id,
name: track.name
)
end
end