mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Remove useless assignment (Ameba find)
This commit is contained in:
parent
817128b286
commit
d2823398ff
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ describe Spectator::Matchers::ChangeMatcher do
|
|||
i = 0
|
||||
partial = new_block_partial { i += 5 }
|
||||
matcher = Spectator::Matchers::ChangeMatcher.new { i }
|
||||
match_data = matcher.from(0).match(partial)
|
||||
matcher.from(0).match(partial)
|
||||
i.should eq(5) # Local scope `i` will be updated if the expression (closure) was passed on.
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue