diff --git a/src/spectator.cr b/src/spectator.cr index 66939af..4ed295d 100644 --- a/src/spectator.cr +++ b/src/spectator.cr @@ -45,7 +45,7 @@ module Spectator end end - # ditto + # :ditto: macro context(description, &block) describe({{description}}) {{block}} end diff --git a/src/spectator/dsl/assertions.cr b/src/spectator/dsl/assertions.cr index aa94b13..11b5ffe 100644 --- a/src/spectator/dsl/assertions.cr +++ b/src/spectator/dsl/assertions.cr @@ -207,7 +207,7 @@ module Spectator raise ExampleFailed.new(reason) end - # ditto + # :ditto: @[AlwaysInline] def fail fail("Example failed") diff --git a/src/spectator/dsl/matchers.cr b/src/spectator/dsl/matchers.cr index 3a2a703..bbf2f62 100644 --- a/src/spectator/dsl/matchers.cr +++ b/src/spectator/dsl/matchers.cr @@ -518,7 +518,7 @@ module Spectator ::Spectator::Matchers::HaveKeyMatcher.new(%test_value) end - # ditto + # :ditto: macro has_key(expected) have_key({{expected}}) end @@ -536,7 +536,7 @@ module Spectator ::Spectator::Matchers::HaveValueMatcher.new(%test_value) end - # ditto + # :ditto: macro has_value(expected) have_value({{expected}}) end diff --git a/src/spectator/expectations/expectation_partial.cr b/src/spectator/expectations/expectation_partial.cr index 6a38301..c837c86 100644 --- a/src/spectator/expectations/expectation_partial.cr +++ b/src/spectator/expectations/expectation_partial.cr @@ -52,7 +52,7 @@ module Spectator::Expectations stubs.each { |stub| to_not(stub) } end - # ditto + # :ditto: @[AlwaysInline] def not_to(matcher) : Nil to_not(matcher) @@ -86,7 +86,7 @@ module Spectator::Expectations to_not(stub) end - # ditto + # :ditto: @[AlwaysInline] def never_to(matcher) : Nil to_never(matcher)