Browse Source

Rubocop

pull/22/head
baarkerlounger 3 years ago
parent
commit
da90a60650
  1. 6
      spec/features/case_log_spec.rb

6
spec/features/case_log_spec.rb

@ -28,7 +28,7 @@ RSpec.describe "Test Features" do
expect(page).to have_field("tenant-age-field") expect(page).to have_field("tenant-age-field")
click_button("Save and continue") click_button("Save and continue")
expect(page).to have_field("tenant-gender-0-field") expect(page).to have_field("tenant-gender-0-field")
visit page.driver.request.env['HTTP_REFERER'] visit page.driver.request.env["HTTP_REFERER"]
expect(page).to have_field("tenant-age-field") expect(page).to have_field("tenant-age-field")
end end
@ -42,13 +42,13 @@ RSpec.describe "Test Features" do
describe "Back link directs correctly" do describe "Back link directs correctly" do
it "go back to tasklist page from tenant code" do it "go back to tasklist page from tenant code" do
visit("/case_logs/#{id}/tenant_code") visit("/case_logs/#{id}/tenant_code")
click_link(text: 'Back') click_link(text: "Back")
expect(page).to have_content("Tasklist for log #{id}") expect(page).to have_content("Tasklist for log #{id}")
end end
it "go back to tenant code page from tenant age page" do it "go back to tenant code page from tenant age page" do
visit("/case_logs/#{id}/tenant_age") visit("/case_logs/#{id}/tenant_age")
click_link(text: 'Back') click_link(text: "Back")
expect(page).to have_field("tenant-code-field") expect(page).to have_field("tenant-code-field")
end end
end end

Loading…
Cancel
Save