Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Aug 14, 2024
1 parent 474490a commit 52d8b7f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ $ gem install transition_through

```ruby
it 'should transition through' do
expect { counter.increment(3) }.to transition { counter.count }.through 0..3
expect {
counter.count = 0
counter.count += 1
counter.count = counter.count + 3
counter.count -= 2
}.to transition { counter.count }.through [0, 1, 4, 2]
end
```

Expand Down

0 comments on commit 52d8b7f

Please sign in to comment.