Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 241f697

Browse files
committed
Remove use of helper method override w/o super.
1 parent 302bfba commit 241f697

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ RSpec.describe "Using an array as a stack" do
201201
end
202202

203203
context "after an item has been pushed" do
204-
def build_stack
205-
super.push :item
204+
before(:example) do
205+
@stack.push :item
206206
end
207207

208208
it 'allows the pushed item to be popped' do
@@ -220,7 +220,7 @@ class UsingAnArrayAsAStack < RSpec::Core::ExampleGroup
220220
[]
221221
end
222222

223-
def before_example
223+
def before_example_1
224224
@stack = build_stack
225225
end
226226

@@ -229,8 +229,8 @@ class UsingAnArrayAsAStack < RSpec::Core::ExampleGroup
229229
end
230230

231231
class AfterAnItemHasBeenPushed < self
232-
def build_stack
233-
super.push :item
232+
def before_example_2
233+
@stack.push :item
234234
end
235235

236236
def it_allows_the_pushed_item_to_be_popped

0 commit comments

Comments
 (0)