mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Support multiple block arguments in sample block
https://github.com/icy-arctic-fox/spectator/issues/41#issuecomment-1010192486
This commit is contained in:
parent
c1841526d4
commit
4057089c20
4 changed files with 30 additions and 11 deletions
|
@ -16,4 +16,14 @@ Spectator.describe "Spec metadata" do
|
|||
expect(example.name).to eq("works with #{string}")
|
||||
end
|
||||
end
|
||||
|
||||
def self.a_hash
|
||||
{"foo" => 42, "bar" => 123, "baz" => 7}
|
||||
end
|
||||
|
||||
sample a_hash do |key, value|
|
||||
it "works with #{key} = #{value}" do |example|
|
||||
expect(example.name).to eq("works with #{key} = #{value}")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue