test/BigTreeNode_spec.rb in perobs-4.5.0 vs test/BigTreeNode_spec.rb in perobs-4.6.0

- old
+ new

@@ -1,7 +1,7 @@ -# encoding: UTF-8 -# +# frozen_string_literal: true + # Copyright (c) 2016, 2017 by Chris Schlaeger <chris@taskjuggler.org> # # MIT License # # Permission is hereby granted, free of charge, to any person obtaining @@ -23,16 +23,15 @@ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. require 'fileutils' -require 'spec_helper' -require 'perobs/Store' -require 'perobs/BigTree' +require_relative 'spec_helper' +require_relative '../lib/perobs/Store' +require_relative '../lib/perobs/BigTree' describe PEROBS::BigTreeNode do - before(:all) do @db_name = generate_db_name(__FILE__) @store = PEROBS::Store.new(@db_name) @store['bigtree'] = @t = @store.new(PEROBS::BigTree, 4) end @@ -146,8 +145,6 @@ expect(@t.check).to be true s = @t.statistics expect(s.leaf_nodes).to eql(3) expect(s.branch_nodes).to eql(1) end - end -