Temporarily disable running examples

This commit is contained in:
Michael Miller 2020-09-12 18:40:36 -06:00
parent 6752c7c254
commit dad669686c
No known key found for this signature in database
GPG key ID: FB9F12F7C646A4AD
3 changed files with 16 additions and 12 deletions

View file

@ -101,8 +101,9 @@ module Spectator
# Builds the tests and runs the framework. # Builds the tests and runs the framework.
private def run private def run
# Build the test suite and run it. # Build the test suite and run it.
suite = ::Spectator::SpecBuilder.build(config.example_filter) # suite = ::Spectator::SpecBuilder.build(config.example_filter)
Runner.new(suite, config).run # Runner.new(suite, config).run
true
rescue ex rescue ex
# Catch all unhandled exceptions here. # Catch all unhandled exceptions here.
# Examples are already wrapped, so any exceptions they throw are caught. # Examples are already wrapped, so any exceptions they throw are caught.

View file

@ -1,4 +1,6 @@
require "./dsl/*" # require "./dsl/*"
require "./dsl/builder"
require "./dsl/groups"
module Spectator module Spectator
# Namespace containing methods representing the spec domain specific language. # Namespace containing methods representing the spec domain specific language.

View file

@ -1,6 +1,8 @@
module Spectator module Spectator::DSL
module DSL module Values
macro let(name, &block) end
macro let(name, &block)
@%wrapper : ::Spectator::ValueWrapper? @%wrapper : ::Spectator::ValueWrapper?
def {{name.id}} def {{name.id}}
@ -18,7 +20,7 @@ module Spectator
end end
end end
macro let!(name, &block) macro let!(name, &block)
@%wrapper : ::Spectator::ValueWrapper? @%wrapper : ::Spectator::ValueWrapper?
def %wrapper def %wrapper
@ -34,7 +36,7 @@ module Spectator
end end
end end
macro subject(&block) macro subject(&block)
{% if block.is_a?(Nop) %} {% if block.is_a?(Nop) %}
self.subject self.subject
{% else %} {% else %}
@ -42,7 +44,7 @@ module Spectator
{% end %} {% end %}
end end
macro subject(name, &block) macro subject(name, &block)
let({{name.id}}) {{block}} let({{name.id}}) {{block}}
def subject def subject
@ -50,16 +52,15 @@ module Spectator
end end
end end
macro subject!(&block) macro subject!(&block)
let!(:subject) {{block}} let!(:subject) {{block}}
end end
macro subject!(name, &block) macro subject!(name, &block)
let!({{name.id}}) {{block}} let!({{name.id}}) {{block}}
def subject def subject
{{name.id}} {{name.id}}
end end
end end
end
end end