Skip to content

Commit 0cd59e1

Browse files
committed
fix 'uninitialized instance variable' warning
Running specs in my Rails 4.1.2.rc1 app with warnings turned on prints this warning, and just this warning. So I fixed it. :)
1 parent 26dd1fa commit 0cd59e1

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)