Browse Source

Fix broken specs on main

pull/140/head
baarkerlounger 4 years ago
parent
commit
3c2a061160
  1. 4
      spec/features/form/form_navigation_spec.rb
  2. 2
      spec/requests/case_log_controller_spec.rb

4
spec/features/form/form_navigation_spec.rb

@ -31,7 +31,7 @@ RSpec.describe "Form Navigation" do
visit("/case-logs")
click_link("Create new log")
id = CaseLog.order(created_at: :desc).first.id
expect(page).to have_content("Tasklist for log #{id}")
expect(page).to have_content("Case log #{id}")
end
end
@ -55,7 +55,7 @@ RSpec.describe "Form Navigation" do
visit("/case-logs/#{id}")
visit("/case-logs/#{id}/tenant-code")
click_link(text: "Back")
expect(page).to have_content("Tasklist for log #{id}")
expect(page).to have_content("Case log #{id}")
end
it "go back to tenant code page from tenant age page", js: true do

2
spec/requests/case_log_controller_spec.rb

@ -187,7 +187,7 @@ RSpec.describe CaseLogsController, type: :request do
end
it "shows the tasklist for case logs you have access to" do
expect(response.body).to match("Tasklist for log")
expect(response.body).to match("Case log")
expect(response.body).to match(case_log.id.to_s)
end

Loading…
Cancel
Save