Skip to content

Commit

Permalink
Fix ruby warning in spec_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Oct 25, 2019
1 parent f6e4488 commit 6487a1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/method_source_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
@lambda_source = "MyLambda = lambda { :lambda }\n"
@proc_source = "MyProc = Proc.new { :proc }\n"
@hello_instance_evaled_source = " def hello_\#{name}(*args)\n send_mesg(:\#{name}, *args)\n end\n"
@hello_instance_evaled_source_2 = " def \#{name}_two()\n if 44\n 45\n end\n end\n"
@hello_instance_evaled_source_2 = " def \#{name}_two()\n if 40 + 4\n 45\n end\n end\n"
@hello_class_evaled_source = " def hello_\#{name}(*args)\n send_mesg(:\#{name}, *args)\n end\n"
@hi_module_evaled_source = " def hi_\#{name}\n @var = \#{name}\n end\n"
end
Expand Down
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,14 @@ def hi_#{name}
M.instance_eval <<EOF, __FILE__, __LINE__ + 1
def #{name}_one()
if 43
if 40 + 3
44
end
end
def #{name}_two()
if 44
if 40 + 4
45
end
end
Expand Down

0 comments on commit 6487a1e

Please sign in to comment.