diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-04-16 16:10:15 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-04-16 16:10:27 +0100 |
commit | 7f404426fd17ee96e2326075453cc1b8a0dbd59f (patch) | |
tree | c89289b5fcf863ff727403cd28d1ffdc26786486 | |
parent | ec675fd07b8a80fc16ac5b02c49467c1a51b4fc5 (diff) |
We have no expectation of order here.
Fixes transient failure like https://travis-ci.org/mysociety/alaveteli/jobs/58761975
-rw-r--r-- | spec/controllers/admin_public_body_categories_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/admin_public_body_categories_controller_spec.rb b/spec/controllers/admin_public_body_categories_controller_spec.rb index 1131b3c0b..c15ee77f1 100644 --- a/spec/controllers/admin_public_body_categories_controller_spec.rb +++ b/spec/controllers/admin_public_body_categories_controller_spec.rb @@ -310,7 +310,7 @@ describe AdminPublicBodyCategoriesController do post :update, :id => category.id, :public_body_category => category.serializable_hash.except(:title, :description) - expect(assigns(:tagged_public_bodies)).to eq(expected_bodies) + expect(assigns(:tagged_public_bodies)).to match_array(expected_bodies) end it "saves edits to a public body category's heading associations" do |