Browse Source

refactor: linting

pull/1103/head
natdeanlewissoftwire 4 years ago
parent
commit
50295c1e11
  1. 4
      spec/features/form/check_answers_page_sales_logs_spec.rb

4
spec/features/form/check_answers_page_sales_logs_spec.rb

@ -38,7 +38,7 @@ RSpec.describe "Sales Log Check Answers Page" do
end end
context "when the user is checking their answers for the household characteristics subsection" do context "when the user is checking their answers for the household characteristics subsection" do
context "for a joint purchase" do context "and the log is for a joint purchase" do
it "they see a seperate summary card for each member of the household" do it "they see a seperate summary card for each member of the household" do
visit("/sales-logs/#{completed_sales_log_joint_purchase.id}/#{subsection}/check-answers") visit("/sales-logs/#{completed_sales_log_joint_purchase.id}/#{subsection}/check-answers")
assert_selector ".x-govuk-summary-card__title", text: "Buyer 1", count: 1 assert_selector ".x-govuk-summary-card__title", text: "Buyer 1", count: 1
@ -48,7 +48,7 @@ RSpec.describe "Sales Log Check Answers Page" do
end end
end end
context "for a non-joint purchase" do context "and the log is for a non-joint purchase" do
it "they see a seperate summary card for each member of the household" do it "they see a seperate summary card for each member of the household" do
visit("/sales-logs/#{completed_sales_log_non_joint_purchase.id}/#{subsection}/check-answers") visit("/sales-logs/#{completed_sales_log_non_joint_purchase.id}/#{subsection}/check-answers")
assert_selector ".x-govuk-summary-card__title", text: "Buyer 1", count: 1 assert_selector ".x-govuk-summary-card__title", text: "Buyer 1", count: 1

Loading…
Cancel
Save