Don't need to check status code
This commit is contained in:
parent
13e54e9ce8
commit
6ce043edbb
1 changed files with 1 additions and 11 deletions
|
@ -6,11 +6,6 @@ describe "Workouts" do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "GET /workouts" do
|
describe "GET /workouts" do
|
||||||
it "should return 200" do
|
|
||||||
visit workouts_path
|
|
||||||
page.status_code.should be 200
|
|
||||||
end
|
|
||||||
|
|
||||||
it "should return workouts" do
|
it "should return workouts" do
|
||||||
visit workouts_path
|
visit workouts_path
|
||||||
page.should have_content @workout.date
|
page.should have_content @workout.date
|
||||||
|
@ -26,11 +21,6 @@ describe "Workouts" do
|
||||||
page.should have_content @workout.date
|
page.should have_content @workout.date
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should return 200" do
|
|
||||||
visit "#{workouts_path}/#{@workout.id}"
|
|
||||||
page.status_code.should be 200
|
|
||||||
end
|
|
||||||
|
|
||||||
it "should return the correct workout" do
|
it "should return the correct workout" do
|
||||||
visit "#{workouts_path}/#{@workout.id}"
|
visit "#{workouts_path}/#{@workout.id}"
|
||||||
page.should have_content @workout.date
|
page.should have_content @workout.date
|
||||||
|
@ -41,7 +31,7 @@ describe "Workouts" do
|
||||||
it "should edit the workout" do
|
it "should edit the workout" do
|
||||||
visit workouts_path
|
visit workouts_path
|
||||||
find("#workout_#{@workout.id}").click_link 'Edit'
|
find("#workout_#{@workout.id}").click_link 'Edit'
|
||||||
|
|
||||||
current_path.should == edit_workout_path(@workout)
|
current_path.should == edit_workout_path(@workout)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue