Skip to content

Commit ffc9226

Browse files
committed
Merge pull request #1085 from indirect/patch-1
fix 'uninitialized instance variable' warning
2 parents 26dd1fa + 0cd59e1 commit ffc9226

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/rspec/rails/adapters.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ def teardown(*methods)
120120
end
121121
end
122122

123+
def initialize
124+
@example = nil
125+
end
126+
123127
def method_name
124128
@example
125129
end

0 commit comments

Comments
 (0)