diff --git a/examples/counter/RSpec/counter_spec.rb b/examples/counter/RSpec/counter_spec.rb index 12723cb..a9c3b9e 100644 --- a/examples/counter/RSpec/counter_spec.rb +++ b/examples/counter/RSpec/counter_spec.rb @@ -7,7 +7,7 @@ MAX = LIMIT - 1 describe "A #{DUT.name} after being reset" do - setup do + before(:each) do DUT.reset! # reset the counter end @@ -24,7 +24,7 @@ end describe "A #{DUT.name} with the maximum value" do - setup do + before(:each) do DUT.reset! # reset the counter # increment the counter to maximum value