Prohlížeč zdrojového kódu

spec/requests/pages_spec.rb

require "rails_helper"
RSpec.describe "Pages", type: :request do
describe "GET /" do
it "returns success" do
get root_path
expect(response).to have_http_status(:success)
end
it "renders the home page" do
get root_path
expect(response.body).to include("Ruby Webování")
end
end
end