From d2276510218792e50af4beb1b170e3b37ab26251 Mon Sep 17 00:00:00 2001 From: Dan Mayer Date: Sat, 18 Apr 2020 08:39:29 -0600 Subject: [PATCH] add jrubyrc --- .jrubyrc | 1 + test/big_dog.rb.erb | 12 ++++++++++++ test/jruby_check.rb | 14 ++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 .jrubyrc create mode 100644 test/big_dog.rb.erb create mode 100644 test/jruby_check.rb diff --git a/.jrubyrc b/.jrubyrc new file mode 100644 index 00000000..030a38e5 --- /dev/null +++ b/.jrubyrc @@ -0,0 +1 @@ +debug.fullTrace=true \ No newline at end of file diff --git a/test/big_dog.rb.erb b/test/big_dog.rb.erb new file mode 100644 index 00000000..eb3ea080 --- /dev/null +++ b/test/big_dog.rb.erb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +class Dog<%=dog_number%> + + def self.bark + new.bark + end + + def bark + 'woof' + end +end diff --git a/test/jruby_check.rb b/test/jruby_check.rb new file mode 100644 index 00000000..56108424 --- /dev/null +++ b/test/jruby_check.rb @@ -0,0 +1,14 @@ +require 'coverage' + +Coverage.start + +require './test/dog.rb' + +puts Coverage.peek_result + +puts Dog.new.bark + +puts Coverage.peek_result + +puts "done" +