Update existing specs to support conditions

This commit is contained in:
Michael Miller 2019-01-11 10:09:40 -07:00
parent 38202ff605
commit d9363fc8a7
8 changed files with 171 additions and 169 deletions

View file

@ -19,7 +19,8 @@ class PassingExample < Spectator::RunnableExample
# Creates a passing example.
def self.create
hooks = Spectator::ExampleHooks.empty
group = Spectator::RootExampleGroup.new(hooks)
conditions = Spectator::ExampleConditions.empty
group = Spectator::RootExampleGroup.new(hooks, conditions)
values = Spectator::Internals::SampleValues.empty
new(group, values).tap do |example|
group.children = [example.as(Spectator::ExampleComponent)]