From de875632e62407e3bd782b9d0614161f34c531a9 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Fri, 14 Oct 2022 09:45:58 +0200 Subject: [PATCH] refactor(spec): use match_array --- db/schema.rb | 6 +++--- .../administrateurs/groupe_instructeurs_controller_spec.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/db/schema.rb b/db/schema.rb index de6ba2111..4c69c11bd 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2022_10_07_113737) do +ActiveRecord::Schema.define(version: 2022_10_13_142432) do # These are extensions that must be enabled in order to support this database enable_extension "pgcrypto" @@ -874,11 +874,11 @@ ActiveRecord::Schema.define(version: 2022_10_07_113737) do end create_table "zone_labels", force: :cascade do |t| - t.bigint "zone_id", null: false + t.datetime "created_at", precision: 6, null: false t.date "designated_on", null: false t.string "name", null: false - t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false + t.bigint "zone_id", null: false t.index ["zone_id"], name: "index_zone_labels_on_zone_id" end diff --git a/spec/controllers/administrateurs/groupe_instructeurs_controller_spec.rb b/spec/controllers/administrateurs/groupe_instructeurs_controller_spec.rb index cc2f34ceb..b9fe58753 100644 --- a/spec/controllers/administrateurs/groupe_instructeurs_controller_spec.rb +++ b/spec/controllers/administrateurs/groupe_instructeurs_controller_spec.rb @@ -176,7 +176,7 @@ describe Administrateurs::GroupeInstructeursController, type: :controller do end it { expect { subject }.to raise_error(ActiveRecord::RecordNotFound) } - it { expect(bulk_message.groupe_instructeurs).to eq([gi_1_1, gi_1_3]) } + it { expect(bulk_message.groupe_instructeurs).to match_array([gi_1_1, gi_1_3]) } end end