mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix copy/paste fail docs
This commit is contained in:
parent
5ec7e25d57
commit
f465df48d4
1 changed files with 2 additions and 2 deletions
|
@ -471,8 +471,8 @@ module Spectator
|
||||||
# Examples:
|
# Examples:
|
||||||
# ```
|
# ```
|
||||||
# expect("foobar").to contain_elements(["foo", "bar"])
|
# expect("foobar").to contain_elements(["foo", "bar"])
|
||||||
# expect("foobar").to contain(['a', 'b'])
|
# expect("foobar").to contain_elements(['a', 'b'])
|
||||||
# expect(%i[a b c]).to contain(%i[a b])
|
# expect(%i[a b c]).to contain_elements(%i[a b])
|
||||||
# ```
|
# ```
|
||||||
macro contain_elements(expected)
|
macro contain_elements(expected)
|
||||||
%test_value = ::Spectator::TestValue.new({{expected}}, {{expected.stringify}})
|
%test_value = ::Spectator::TestValue.new({{expected}}, {{expected.stringify}})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue