Begin adding edit functionality
This commit is contained in:
parent
89cfba504c
commit
71b047be48
5 changed files with 24 additions and 1 deletions
|
@ -36,4 +36,13 @@ describe "Workouts" do
|
|||
page.should have_content @workout.date
|
||||
end
|
||||
end
|
||||
|
||||
describe "PUT /workouts/(:id)" do
|
||||
it "should edit the workout" do
|
||||
visit workouts_path
|
||||
find("#workout_#{@workout.id}").click_link 'Edit'
|
||||
|
||||
current_path.should == edit_workout_path(@workout)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue