Browse Source

update test names

pull/2065/head
Kat 2 years ago
parent
commit
7031f62249
  1. 4
      spec/requests/sales_logs_controller_spec.rb

4
spec/requests/sales_logs_controller_spec.rb

@ -559,7 +559,7 @@ RSpec.describe SalesLogsController, type: :request do
sign_in user sign_in user
end end
it "does not have organisation values" do it "does not show organisation labels" do
get "/sales-logs", headers: headers, params: {} get "/sales-logs", headers: headers, params: {}
expect(page).not_to have_content("Owned by") expect(page).not_to have_content("Owned by")
expect(page).not_to have_content("Managed by") expect(page).not_to have_content("Managed by")
@ -572,7 +572,7 @@ RSpec.describe SalesLogsController, type: :request do
merged_organisation.update!(absorbing_organisation: organisation, merge_date: Time.zone.yesterday) merged_organisation.update!(absorbing_organisation: organisation, merge_date: Time.zone.yesterday)
end end
it "has organisation values" do it "shows organisation labels" do
get "/sales-logs", headers: headers, params: {} get "/sales-logs", headers: headers, params: {}
expect(page).to have_content("Owned by") expect(page).to have_content("Owned by")
expect(page).not_to have_content("Managed by") expect(page).not_to have_content("Managed by")

Loading…
Cancel
Save