From b512d3ce21cf0c2099fbcaf81e55714954854430 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Sat, 7 Nov 2020 12:32:40 +0000 Subject: [PATCH] Fix column preferences spec Failure/Error: expect(preferences.map(&:column_name)).to eq [:col1, :col2, :col3] expected: [:col1, :col2, :col3] got: ["col1", "col2", "col3"] (compared using ==) Diff: @@ -1 +1 @@ -[:col1, :col2, :col3] +["col1", "col2", "col3"] # ./spec/models/column_preference_spec.rb:56:in `block (4 levels) in ' --- spec/models/column_preference_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/column_preference_spec.rb b/spec/models/column_preference_spec.rb index 94c5c1810c..6cc56fc05f 100644 --- a/spec/models/column_preference_spec.rb +++ b/spec/models/column_preference_spec.rb @@ -53,7 +53,7 @@ describe ColumnPreference, type: :model do it "uses defaults where no stored preference exists" do expect(preferences.all?(&:new_record?)).to be true - expect(preferences.map(&:column_name)).to eq [:col1, :col2, :col3] + expect(preferences.map(&:column_name)).to eq ["col1", "col2", "col3"] expect(preferences.map(&:visible)).to eq [false, true, false] end end