File: passing_with_distinct_items.rb

package info (click to toggle)
ruby-rspec 3.13.0c0e0m0s1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 6,856 kB
  • sloc: ruby: 70,868; sh: 1,423; makefile: 99
file content (9 lines) | stat: -rw-r--r-- 221 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
$LOAD_PATH.unshift "./lib"
require 'rspec/expectations'
require 'securerandom'

extend RSpec::Matchers

actual    = Array.new(1000) { SecureRandom.uuid }
expected  = actual.shuffle
expect(actual).to match_array(expected)