Add implicit subject

This commit is contained in:
Michael Miller 2019-09-26 16:02:24 -06:00
parent a261592776
commit dacca0bf1e

View file

@ -16,6 +16,16 @@ module Spectator
{% end %}
)
{% if what.is_a?(Path) || what.is_a?(Generic) %}
macro described_class
{{what}}
end
def subject(*args)
described_class.new(*args)
end
{% end %}
{{block.body}}
::Spectator::SpecBuilder.end_group