Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rspec check array without order

  expect([1, 2, 3]).to    match_array [2, 3, 1] # pass
  expect([:a, :c, :b]).to match_array [:a, :c]  # fail
Source by relishapp.com #
 
PREVIOUS NEXT
Tagged: #rspec #check #array #order
ADD COMMENT
Topic
Name
1+4 =