Add show functionality
This commit is contained in:
parent
cab5cc436e
commit
53d689cd91
3 changed files with 17 additions and 0 deletions
|
@ -16,4 +16,16 @@ describe "Workouts" do
|
|||
page.should have_content @workout.date
|
||||
end
|
||||
end
|
||||
|
||||
describe "GET /workouts/(:id)" do
|
||||
it "should return 200" do
|
||||
visit "#{workouts_path}/#{@workout.id}"
|
||||
page.status_code.should be 200
|
||||
end
|
||||
|
||||
it "should return the correct workout" do
|
||||
visit "#{workouts_path}/#{@workout.id}"
|
||||
page.should have_content @workout.date
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue