From 38f61dc74efc7774691421c4a32a9102a6135a61 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Tue, 11 Jun 2024 19:41:40 -0600 Subject: [PATCH] Move classes under Spectator::Core --- src/spectator.cr | 2 ++ src/{ => spectator}/core/example.cr | 2 +- src/{ => spectator}/core/example_group.cr | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) rename src/{ => spectator}/core/example.cr (97%) rename src/{ => spectator}/core/example_group.cr (96%) diff --git a/src/spectator.cr b/src/spectator.cr index f08083c..2f61c4a 100644 --- a/src/spectator.cr +++ b/src/spectator.cr @@ -1,3 +1,5 @@ +require "./spectator/core/**" + # Feature-rich testing framework for Crystal inspired by RSpec. module Spectator # Current version of the Spectator library. diff --git a/src/core/example.cr b/src/spectator/core/example.cr similarity index 97% rename from src/core/example.cr rename to src/spectator/core/example.cr index 9eb45da..e05f056 100644 --- a/src/core/example.cr +++ b/src/spectator/core/example.cr @@ -1,4 +1,4 @@ -module Spectator +module Spectator::Core # Information about a test case and functionality for running it. class Example # Name of the example. diff --git a/src/core/example_group.cr b/src/spectator/core/example_group.cr similarity index 96% rename from src/core/example_group.cr rename to src/spectator/core/example_group.cr index 6fcc0f8..44c1a6f 100644 --- a/src/core/example_group.cr +++ b/src/spectator/core/example_group.cr @@ -1,4 +1,4 @@ -module Spectator +module Spectator::Core # Information about a group of examples and functionality for running them. # The group can be nested. class ExampleGroup