mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
parent
b305c829be
commit
1d530de5b1
2 changed files with 42 additions and 0 deletions
|
@ -33,4 +33,12 @@ class FailingExample < Spectator::RunnableExample
|
|||
group.children = [example.as(Spectator::ExampleComponent)]
|
||||
end
|
||||
end
|
||||
|
||||
# Creates a group of failing examples.
|
||||
def self.create_group(count = 5, hooks = Spectator::ExampleHooks.empty, conditions = Spectator::ExampleConditions.empty)
|
||||
values = Spectator::Internals::SampleValues.empty
|
||||
Spectator::RootExampleGroup.new(hooks, conditions).tap do |group|
|
||||
group.children = Array.new(count) { new(group, values).as(Spectator::ExampleComponent) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue