Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/test_auth.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def data_size
@active && @value ? @value.size : 0
end

remove_method(:value) if method_defined?(:value)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was not actually included in #488. It'd be still worthwhile to accept this change.... 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for checking. I've rebased this onto master and dropped the commits already covered by #488, so this pull request now only contains the SecurityBuffer#value change.

It removes the original method before redefining it, the same way data_size already is, to silence method redefined; discarding old value.

remove_method(:data_size) if method_defined?(:data_size)
def data_size
@active && @value ? @value.size : 0
end

def value
@value ||= ""
end
Expand Down