Browse Source

Replace view spec with request spec

pull/440/head
baarkerlounger 3 years ago
parent
commit
33b30c5f9c
  1. 9
      spec/requests/case_logs_controller_spec.rb

9
spec/requests/case_logs_controller_spec.rb

@ -258,6 +258,15 @@ RSpec.describe CaseLogsController, type: :request do
end
end
end
it "shows the formatted created at date for each log" do
formatted_date = case_log.created_at.to_formatted_s(:govuk_date)
expect(CGI.unescape_html(response.body)).to include(formatted_date)
end
it "shows the log's status" do
expect(CGI.unescape_html(response.body)).to include(case_log.status.humanize)
end
end
context "when requesting a specific case log" do

Loading…
Cancel
Save