Remove unused classes

This commit is contained in:
Michael Miller 2018-09-23 16:13:48 -06:00
parent 7a6045a1f3
commit 887a04a92a
2 changed files with 0 additions and 28 deletions

View file

@ -1,5 +0,0 @@
module Spectator
abstract class ExampleFactory
abstract def build(locals : Hash(Symbol, ValueWrapper)) : Example
end
end

View file

@ -1,23 +0,0 @@
require "./example_group"
module Spectator
class GivenExampleGroup(T) < ExampleGroup
def initialize(what, @collection : Array(T), @symbol : Symbol, parent = nil)
super(what, parent)
end
def example_count
super * @collection.size
end
def all_examples(locals = {} of Symbol => ValueWrapper)
Array(Example).new(example_count).tap do |array|
@collection.each do |local|
wrapper = TypedValueWrapper(T).new(local)
iter_locals = locals.merge({@symbol => wrapper})
array.concat(super(iter_locals))
end
end
end
end
end