diff options
-rw-r--r-- | .travis.yml | 13 | ||||
-rw-r--r-- | spec/method_source_spec.rb | 2 | ||||
-rw-r--r-- | spec/spec_helper.rb | 4 |
3 files changed, 10 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml index 3aed178..ffd2772 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,6 @@ dist: trusty bundler_args: "--verbose" before_install: - - gem update --system - which bundle || gem install bundler - gem update bundler rvm: @@ -12,11 +11,13 @@ rvm: - rbx-3 - jruby - jruby-head - - 2.0.0 - - 2.1 - - 2.2 - - 2.3 - - 2.4.2 + - "2.0" + - "2.1" + - "2.2" + - "2.3" + - "2.4" + - "2.5" + - "2.6" - ruby-head matrix: allow_failures: 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 |