mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Make spec more robust not relying on order
Enterprises can be in different order. Using `with_options` doesn't care about the order.
This commit is contained in:
@@ -111,7 +111,7 @@ feature %q{
|
||||
scenario "enterprise user can only add their own enterprises as parent" do
|
||||
visit admin_enterprise_relationships_path
|
||||
page.should have_select2 'enterprise_relationship_parent_id', options: ['', d1.name]
|
||||
page.should have_select2 'enterprise_relationship_child_id', options: ['', d1.name, d2.name, d3.name]
|
||||
page.should have_select2 'enterprise_relationship_child_id', with_options: ['', d1.name, d2.name, d3.name]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user