Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion lib/docx/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module SimpleInspect
# than the default inspect method. But you can still get the default inspect method by passing
# true as the first argument.
def inspect(full = false)
return(super) if full
return super() if full

variable_values =
instance_variables.map do |var|
Expand Down
5 changes: 5 additions & 0 deletions spec/docx/helpers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,10 @@ def initialize
expect(object.inspect).to include(%(@long="#{'x' * 100}...))
expect(object.inspect.length).to be < 300
end

# Regression test for #191
it 'falls back to the default inspect when asked for the full output' do
expect(object.inspect(true)).to include('x' * 500)
end
end
end
Loading