Skip to content

Commit

Permalink
Update exporter tests to handle new parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
KludgeKML committed Feb 8, 2024
1 parent cfab487 commit 8a0cd98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/lib/local-links-manager/export/links_exporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ def test_url(local_authority, interaction)
end

%w[ok broken caution missing pending].each do |status_in_params|
context "when params is {'#{status_in_params}' => '#{status_in_params}'}" do
let(:params) { { status_in_params => status_in_params } }
context "when params :link_status_checkbox is [#{status_in_params}]" do
let(:params) { [status_in_params] }
let(:csv) { exporter.export_links(la.id, params) }

it "exports #{status_in_params} links for enabled services for a given local authority to CSV format with headings" do
Expand Down

0 comments on commit 8a0cd98

Please sign in to comment.