app/controllers/user_limericks_controller.rb, to add a syntax error into that controller’s index method as follows.class UserLimericksController < ApplicationController
before_action :authenticate_user!
def index
@user = User.find(params[:user_id])
@limericks = @user.limericks.reverse_order
renxxxxxxder :index
end
end
Note that, similar to the earlier example, the call to render is now an invalid call to an undefined method renxxxxxxder.
Run all tests to check for errors.
rails test -v
Running 1 tests in a single process (parallelization threshold is 50)
Run options: -v --seed 389
# Running:
LimericksControllerTest#test_should_get_index = 2.11 s = .
Finished in 2.112802s, 0.4733 runs/s, 0.9466 assertions/s.
1 runs, 2 assertions, 0 failures, 0 errors, 0 skips