diff --git a/src/spectator/example_factory.cr b/src/spectator/example_factory.cr deleted file mode 100644 index ace54f1..0000000 --- a/src/spectator/example_factory.cr +++ /dev/null @@ -1,5 +0,0 @@ -module Spectator - abstract class ExampleFactory - abstract def build(locals : Hash(Symbol, ValueWrapper)) : Example - end -end diff --git a/src/spectator/given_example_group.cr b/src/spectator/given_example_group.cr deleted file mode 100644 index 3b98f8e..0000000 --- a/src/spectator/given_example_group.cr +++ /dev/null @@ -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