|
|
|
@ -90,6 +90,14 @@ RSpec.describe "password_reset", type: :request do
|
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe "title link" do |
|
|
|
|
it "routes user to the /logs page" do |
|
|
|
|
get "/", headers: headers, params: {} |
|
|
|
|
expected_link = "href=\"/\">#{I18n.t('service_name')}</a>" |
|
|
|
|
expect(CGI.unescape_html(response.body)).to include(expected_link) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe "#show" do |
|
|
|
@ -224,4 +232,16 @@ RSpec.describe "password_reset", type: :request do
|
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
describe "title link" do |
|
|
|
|
before do |
|
|
|
|
sign_in user |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "routes user to the /logs page" do |
|
|
|
|
get "/", headers: headers, params: {} |
|
|
|
|
expected_link = "href=\"/logs\">#{I18n.t('service_name')}</a>" |
|
|
|
|
expect(CGI.unescape_html(response.body)).to include(expected_link) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|