diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2019-10-25 11:56:35 +0200 |
---|---|---|
committer | Jean Boussier <jean.boussier@gmail.com> | 2019-10-25 11:56:35 +0200 |
commit | 6487a1e425997f674c6a6bb8c9e5e83c425ba271 (patch) | |
tree | 640ffe20d70e26d0b657ee52cd0727bb0995d4bb /spec | |
parent | f6e4488b8fcab1a5648de145f89669ad27f9619a (diff) | |
download | method_source-6487a1e425997f674c6a6bb8c9e5e83c425ba271.tar.gz |
Fix ruby warning in spec_helper
Diffstat (limited to 'spec')
-rw-r--r-- | spec/method_source_spec.rb | 2 | ||||
-rw-r--r-- | spec/spec_helper.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/method_source_spec.rb b/spec/method_source_spec.rb index 088c21f..c4e0669 100644 --- a/spec/method_source_spec.rb +++ b/spec/method_source_spec.rb @@ -33,7 +33,7 @@ describe MethodSource do @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 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 0e5de61..d011657 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -82,14 +82,14 @@ METHOD 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 |