Change DSL::Values to DSL::Memoize

This commit is contained in:
Michael Miller 2021-02-10 17:07:49 -07:00
parent 3cd569e639
commit 3083f82132
No known key found for this signature in database
GPG key ID: F9A0C5C65B162436
3 changed files with 4 additions and 3 deletions

View file

@ -1,7 +1,7 @@
require "../source"
require "./builder"
require "./tags"
require "./values"
require "./memoize"
module Spectator::DSL
# DSL methods and macros for creating example groups.

View file

@ -2,7 +2,8 @@ require "../lazy_wrapper"
module Spectator::DSL
# DSL methods for defining test values (subjects).
module Values
# These values are stored and reused throughout the test.
module Memoize
# Defines a memoized getter.
# The *name* is the name of the getter method.
# The block is evaluated only on the first time the getter is used

View file

@ -13,8 +13,8 @@ class SpectatorTestContext < SpectatorContext
include ::Spectator::DSL::Groups
include ::Spectator::DSL::Hooks
include ::Spectator::DSL::Matchers
include ::Spectator::DSL::Memoize
include ::Spectator::DSL::Mocks
include ::Spectator::DSL::Values
@subject = ::Spectator::LazyWrapper.new