Workaround for subject evaluation

This commit is contained in:
Michael Miller 2019-09-26 21:24:50 -06:00
parent 2c400950a4
commit 1eec9190dd

View file

@ -28,7 +28,11 @@ module Spectator
end
macro subject(&block)
{% if block.is_a?(Nop) %}
self.subject
{% else %}
let(:subject) {{block}}
{% end %}
end
macro subject(name, &block)