mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix botched copy/paste
This commit is contained in:
parent
e7441df159
commit
1090a7f2f3
2 changed files with 4 additions and 4 deletions
|
@ -191,7 +191,7 @@ describe Spectator::Matchers::EndWithMatcher do
|
|||
last = "baz"
|
||||
partial = new_partial(value)
|
||||
matcher = Spectator::Matchers::EndWithMatcher.new(last)
|
||||
matcher.message(partial).should contain("#starts_with?")
|
||||
matcher.message(partial).should contain("#ends_with?")
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -247,7 +247,7 @@ describe Spectator::Matchers::EndWithMatcher do
|
|||
last = "baz"
|
||||
partial = new_partial(value)
|
||||
matcher = Spectator::Matchers::EndWithMatcher.new(last)
|
||||
matcher.negated_message(partial).should contain("#starts_with?")
|
||||
matcher.negated_message(partial).should contain("#ends_with?")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ module Spectator::Matchers
|
|||
# Otherwise, treat the actual type as an `Indexable`,
|
||||
# and retrieve the last value to compare with.
|
||||
# FIXME: Is there a better way to do this?
|
||||
if {{actual}}.responds_to?(:starts_with?)
|
||||
if {{actual}}.responds_to?(:ends_with?)
|
||||
{{block.args.first}} = EndsWithCompareMethod.new
|
||||
{{block.body}}
|
||||
else
|
||||
|
@ -58,7 +58,7 @@ module Spectator::Matchers
|
|||
|
||||
# String representation for end-user output.
|
||||
def to_s
|
||||
"#starts_with?"
|
||||
"#ends_with?"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue