This page has a controller spec example that looks like this:
require "spec_helper"
describe WidgetsController do
describe "GET index" do
it "has a 200 status code" do
get :index
expect(response.code).to eq("200")
end
end
end
Where would I find the source code for the get
function? I don't even know if that's part of RSpec or Rails.