Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rspec check array without order

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