diff --git a/src/spectator/dsl/structure_dsl.cr b/src/spectator/dsl/structure_dsl.cr index 8a3f6b2..cdea7dc 100644 --- a/src/spectator/dsl/structure_dsl.cr +++ b/src/spectator/dsl/structure_dsl.cr @@ -268,8 +268,8 @@ module Spectator::DSL # Implicit subject definition. # Simply creates a new instance of the described type. - def subject - described_class.new + def subject(*args) + described_class.new(*args) end {% end %}