mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Change "ditto" to ":ditto:"
This commit is contained in:
parent
3e3be77d30
commit
9c14c69bba
4 changed files with 6 additions and 6 deletions
|
@ -45,7 +45,7 @@ module Spectator
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# ditto
|
# :ditto:
|
||||||
macro context(description, &block)
|
macro context(description, &block)
|
||||||
describe({{description}}) {{block}}
|
describe({{description}}) {{block}}
|
||||||
end
|
end
|
||||||
|
|
|
@ -207,7 +207,7 @@ module Spectator
|
||||||
raise ExampleFailed.new(reason)
|
raise ExampleFailed.new(reason)
|
||||||
end
|
end
|
||||||
|
|
||||||
# ditto
|
# :ditto:
|
||||||
@[AlwaysInline]
|
@[AlwaysInline]
|
||||||
def fail
|
def fail
|
||||||
fail("Example failed")
|
fail("Example failed")
|
||||||
|
|
|
@ -518,7 +518,7 @@ module Spectator
|
||||||
::Spectator::Matchers::HaveKeyMatcher.new(%test_value)
|
::Spectator::Matchers::HaveKeyMatcher.new(%test_value)
|
||||||
end
|
end
|
||||||
|
|
||||||
# ditto
|
# :ditto:
|
||||||
macro has_key(expected)
|
macro has_key(expected)
|
||||||
have_key({{expected}})
|
have_key({{expected}})
|
||||||
end
|
end
|
||||||
|
@ -536,7 +536,7 @@ module Spectator
|
||||||
::Spectator::Matchers::HaveValueMatcher.new(%test_value)
|
::Spectator::Matchers::HaveValueMatcher.new(%test_value)
|
||||||
end
|
end
|
||||||
|
|
||||||
# ditto
|
# :ditto:
|
||||||
macro has_value(expected)
|
macro has_value(expected)
|
||||||
have_value({{expected}})
|
have_value({{expected}})
|
||||||
end
|
end
|
||||||
|
|
|
@ -52,7 +52,7 @@ module Spectator::Expectations
|
||||||
stubs.each { |stub| to_not(stub) }
|
stubs.each { |stub| to_not(stub) }
|
||||||
end
|
end
|
||||||
|
|
||||||
# ditto
|
# :ditto:
|
||||||
@[AlwaysInline]
|
@[AlwaysInline]
|
||||||
def not_to(matcher) : Nil
|
def not_to(matcher) : Nil
|
||||||
to_not(matcher)
|
to_not(matcher)
|
||||||
|
@ -86,7 +86,7 @@ module Spectator::Expectations
|
||||||
to_not(stub)
|
to_not(stub)
|
||||||
end
|
end
|
||||||
|
|
||||||
# ditto
|
# :ditto:
|
||||||
@[AlwaysInline]
|
@[AlwaysInline]
|
||||||
def never_to(matcher) : Nil
|
def never_to(matcher) : Nil
|
||||||
to_never(matcher)
|
to_never(matcher)
|
||||||
|
|
Loading…
Reference in a new issue