mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Merge branch 'named-subject-fix' into 'master'
Named subject fix See merge request arctic-fox/spectator!3
This commit is contained in:
commit
ed2614da22
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
name: spectator
|
name: spectator
|
||||||
version: 0.7.0
|
version: 0.7.1
|
||||||
description: |
|
description: |
|
||||||
A feature-rich spec testing framework for Crystal with similarities to RSpec.
|
A feature-rich spec testing framework for Crystal with similarities to RSpec.
|
||||||
|
|
||||||
|
|
|
@ -781,8 +781,8 @@ module Spectator::DSL
|
||||||
# It is cached so that the same instance is used throughout the test.
|
# It is cached so that the same instance is used throughout the test.
|
||||||
# The subject will be recreated for each test it is used in.
|
# The subject will be recreated for each test it is used in.
|
||||||
macro subject(name, &block)
|
macro subject(name, &block)
|
||||||
subject {{block}}
|
let({{name.id}}) {{block}}
|
||||||
let({{name.id}}) { subject }
|
subject { {{name.id}} }
|
||||||
end
|
end
|
||||||
|
|
||||||
# Defines an expression by name.
|
# Defines an expression by name.
|
||||||
|
|
Loading…
Reference in a new issue