mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-10 03:30:22 +00:00
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 <top (required)>'
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user