From 52d8b7f69994f4d53384916c7b0d73a3306a32da Mon Sep 17 00:00:00 2001 From: Zeke Gabrielse Date: Wed, 14 Aug 2024 10:01:42 -0500 Subject: [PATCH] update example --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a57ebe..d9005af 100644 --- a/README.md +++ b/README.md @@ -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 ```