-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix rspec 3.3 #32
fix rspec 3.3 #32
Conversation
def clear_memoized | ||
# __memoized is private method and is defined in rspec 3.3 | ||
__memoized.instance_variable_get(:@memoized).clear | ||
rescue NameError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't use rescue
for control flow
@eitoball can you take a look at my mild changes? |
@@ -8,13 +8,22 @@ def clear_exception | |||
end | |||
end | |||
|
|||
require 'pry' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should remove this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is why we code review thanks.
Almost LGTM, see #32 (comment) I intentionally didn't use |
split this off from #27