Rakefile in junoser-0.2.13 vs Rakefile in junoser-0.3.0

- old
+ new

@@ -2,13 +2,13 @@ require 'junoser/development' require 'nokogiri' require 'pathname' require 'rake/testtask' -xsd_path = File.expand_path('../tmp/junos-system-12.1.xsd', Pathname.new(__FILE__).realpath) -rule_path = File.expand_path('../tmp/rule.rb', Pathname.new(__FILE__).realpath) -parser_path = File.expand_path('../lib/junoser/parser.rb', Pathname.new(__FILE__).realpath) +xsd_path = File.join(__dir__, 'tmp/junos-system-17.2.xsd') +rule_path = File.join(__dir__, 'tmp/rule.rb') +parser_path = File.join(__dir__, 'lib/junoser/parser.rb') def open_files(input, output, &block) i = open(input) o = open(output, 'w') @@ -37,9 +37,11 @@ end end Rake::TestTask.new do |t| + t.libs << 'test' + t.verbose = true t.warning = false end desc 'Run tests'