Skip to content

Commit

Permalink
update ivar tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Aug 14, 2024
1 parent 93b897b commit c408dcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/transition_through_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ def increment(n = 1, by: 1) = n.times { @count += by }
def decrement(n = 1, by: 1) = n.times { @count -= by }
end

# TODO(ezekg) not sure this is possible since you can't redefine an ivar setter
# TODO(ezekg) not sure this is possible since you can't observe an ivar
it 'should not track transitions' do
expect { counter.increment(3) }.to transition { counter.count }.through [0]
expect { counter.increment(3) }.to transition { counter.count }.nowhere
end
end

Expand Down

0 comments on commit c408dcd

Please sign in to comment.