mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix enterprise group spec
EnterpriseGroup.by_position now returns an ActiveRecord::Relation in Rails 4, so in this test case it doesn't respond as an array
This commit is contained in:
@@ -63,7 +63,7 @@ describe EnterpriseGroup do
|
||||
eg2 = create(:enterprise_group, position: 3)
|
||||
eg3 = create(:enterprise_group, position: 2)
|
||||
|
||||
expect(EnterpriseGroup.by_position).to eq([eg1, eg3, eg2])
|
||||
expect(EnterpriseGroup.by_position.to_a).to eq([eg1, eg3, eg2])
|
||||
end
|
||||
|
||||
it "finds enterprise groups on the front page" do
|
||||
|
||||
Reference in New Issue
Block a user