mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Swap label and expected value parameters
This matches the partial initializer parameters. Also cleaned up some code in the Expectation spec.
This commit is contained in:
parent
f3e50c6432
commit
5ba03a90ff
20 changed files with 74 additions and 110 deletions
|
@ -54,7 +54,7 @@ describe Spectator::Matchers::RegexMatcher do
|
|||
label = "different"
|
||||
pattern = /foo/
|
||||
partial = new_partial(value)
|
||||
matcher = Spectator::Matchers::RegexMatcher.new(label, pattern)
|
||||
matcher = Spectator::Matchers::RegexMatcher.new(pattern, label)
|
||||
matcher.message(partial).should contain(label)
|
||||
end
|
||||
|
||||
|
@ -92,7 +92,7 @@ describe Spectator::Matchers::RegexMatcher do
|
|||
label = "different"
|
||||
pattern = /foo/
|
||||
partial = new_partial(value)
|
||||
matcher = Spectator::Matchers::RegexMatcher.new(label, pattern)
|
||||
matcher = Spectator::Matchers::RegexMatcher.new(pattern, label)
|
||||
matcher.negated_message(partial).should contain(label)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue