Skip to content

Commit

Permalink
Fix bad class variable access pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
camertron committed Mar 12, 2024
1 parent cd7bc8f commit af88804
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/octicons_helper/test/octicons_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@

mock = Minitest::Mock.new
def mock.path
@@call_count ||= 0
@@call_count += 1
@call_count ||= 0
@call_count += 1

raise "Octicon library called twice" if @@call_count > 1
raise "Octicon library called twice" if @call_count > 1

"foo"
end
Expand Down

0 comments on commit af88804

Please sign in to comment.