Browse Source

Make spec a little more robust

pull/221/head
baarkerlounger 4 years ago
parent
commit
8dd59fcfd6
  1. 2
      spec/lib/tasks/data_import/organisations_spec.rb

2
spec/lib/tasks/data_import/organisations_spec.rb

@ -13,6 +13,6 @@ describe "rake data_import:organisations", type: :task do
it "creates an organisation from the given XML file" do it "creates an organisation from the given XML file" do
expect { task.invoke(fixture_path) }.to change(Organisation, :count).by(1) expect { task.invoke(fixture_path) }.to change(Organisation, :count).by(1)
expect(Organisation.last.old_visible_id).to eq(1034) expect(Organisation.find_by(old_visible_id: 1034).name).to eq("HA Ltd")
end end
end end

Loading…
Cancel
Save