Fix copy/paste fail docs

This commit is contained in:
Michael Miller 2020-12-23 13:18:36 -07:00
parent 5ec7e25d57
commit f465df48d4
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD

View file

@ -471,8 +471,8 @@ module Spectator
# Examples:
# ```
# expect("foobar").to contain_elements(["foo", "bar"])
# expect("foobar").to contain(['a', 'b'])
# expect(%i[a b c]).to contain(%i[a b])
# expect("foobar").to contain_elements(['a', 'b'])
# expect(%i[a b c]).to contain_elements(%i[a b])
# ```
macro contain_elements(expected)
%test_value = ::Spectator::TestValue.new({{expected}}, {{expected.stringify}})