mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Test string interpolation with sample
This commit is contained in:
parent
35628fbbfc
commit
c1841526d4
1 changed files with 10 additions and 0 deletions
|
@ -6,4 +6,14 @@ Spectator.describe "Spec metadata" do
|
|||
it "supports #{interpolation}" do |example|
|
||||
expect(example.name).to eq("supports string interpolation")
|
||||
end
|
||||
|
||||
def self.various_strings
|
||||
%w[foo bar baz]
|
||||
end
|
||||
|
||||
sample various_strings do |string|
|
||||
it "works with #{string}" do |example|
|
||||
expect(example.name).to eq("works with #{string}")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue