Skip to content

Commit

Permalink
Fix extra indentation in shared specs of Proc#to_s/#inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
herwinw committed Jan 5, 2024
1 parent b8a30d4 commit 4943c53
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/proc/shared/to_s.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@

describe "for a proc created with UnboundMethod#to_proc" do
it "returns a description including '(lambda)' and optionally including file and line number" do
def hello; end
s = method("hello").to_proc.send(@method)
if s.include? __FILE__
s.should =~ /^#<Proc:([^ ]*?) #{Regexp.escape __FILE__}:#{__LINE__ - 3} \(lambda\)>$/
else
s.should =~ /^#<Proc:([^ ]*?) \(lambda\)>$/
end
def hello; end
s = method("hello").to_proc.send(@method)
if s.include? __FILE__
s.should =~ /^#<Proc:([^ ]*?) #{Regexp.escape __FILE__}:#{__LINE__ - 3} \(lambda\)>$/
else
s.should =~ /^#<Proc:([^ ]*?) \(lambda\)>$/
end
end

it "has a binary encoding" do
Expand Down

0 comments on commit 4943c53

Please sign in to comment.