mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Clarify that #let
can use expressions
This commit is contained in:
parent
7f99dcc06f
commit
b7d3648256
1 changed files with 2 additions and 2 deletions
|
@ -472,7 +472,7 @@ module Spectator::DSL
|
||||||
let(:subject) {{block}}
|
let(:subject) {{block}}
|
||||||
end
|
end
|
||||||
|
|
||||||
# Defines a value by name.
|
# Defines an expression by name.
|
||||||
# The name can be used in examples to retrieve the value (basically a method).
|
# The name can be used in examples to retrieve the value (basically a method).
|
||||||
# This can be used to define a value once and reuse it in multiple examples.
|
# This can be used to define a value once and reuse it in multiple examples.
|
||||||
#
|
#
|
||||||
|
@ -554,7 +554,7 @@ module Spectator::DSL
|
||||||
end
|
end
|
||||||
|
|
||||||
# The noisier sibling to `#let`.
|
# The noisier sibling to `#let`.
|
||||||
# Defines a value by giving it a name.
|
# Defines an expression by giving it a name.
|
||||||
# The name can be used in examples to retrieve the value (basically a method).
|
# The name can be used in examples to retrieve the value (basically a method).
|
||||||
# This can be used to define a value once and reuse it in multiple examples.
|
# This can be used to define a value once and reuse it in multiple examples.
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue