Clarify that #let can use expressions

This commit is contained in:
Michael Miller 2019-01-02 11:00:38 -07:00
parent 7f99dcc06f
commit b7d3648256

View file

@ -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.
# #