From cf789f54be4dfe2e32fd9e775ae0c98b49db5bf7 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Thu, 30 Aug 2018 15:55:20 -0600 Subject: [PATCH] Remove code for running examples Preparing to add runner. --- src/spectator.cr | 4 ---- src/spectator/dsl.cr | 10 ---------- 2 files changed, 14 deletions(-) diff --git a/src/spectator.cr b/src/spectator.cr index 632474e..f29aa93 100644 --- a/src/spectator.cr +++ b/src/spectator.cr @@ -13,10 +13,6 @@ module Spectator {% debug %} end - macro _spec_add_example(example) - {{example.id}}.run - end - at_exit do # TODO end diff --git a/src/spectator/dsl.cr b/src/spectator/dsl.cr index 3500f3a..a9b9e2f 100644 --- a/src/spectator/dsl.cr +++ b/src/spectator/dsl.cr @@ -1,9 +1,5 @@ require "./example_group" -private macro _spec_add_example(example) - @examples << example -end - module Spectator module DSL macro describe(what, type = "Describe", &block) @@ -37,7 +33,6 @@ module Spectator {{block.body}} end end - ::Spectator._spec_add_example({{class_name.id}}.new) end def it_behaves_like @@ -97,10 +92,5 @@ module Spectator def include_examples raise NotImplementedError.new("Spectator::DSL#include_examples") end - - # :nodoc: - protected def _spec_build - ExampleGroup.new(@examples) - end end end