Module: Minitest::Assertions

Defined in:
lib/neeto_commons_backend/common_files/test/support/assertion_support.rb

Instance Method Summary collapse

Instance Method Details

#assert_picked_elements_are_same(expected, actual, pick_by = "id") ⇒ Object



5
6
7
# File 'lib/neeto_commons_backend/common_files/test/support/assertion_support.rb', line 5

def assert_picked_elements_are_same(expected, actual, pick_by = "id")
  assert_equal expected.pluck(pick_by).sort, actual.pluck(pick_by).sort
end