Sha256: dda3de65355794571b00a0dbf61c9097f20747636a83006d83727e29ffd127c5

Contents?: true

Size: 627 Bytes

Versions: 1

Compression:

Stored size: 627 Bytes

Contents

require 'spec_helper'
module Viiite
  class BDB
    describe Utils, "#bench_file" do

      let(:utils) { Object.new.extend(Utils) }
      let(:folder){ fixtures_folder }
      subject{ utils.bench_file(folder, file, ext) }

      describe "on a file in root folder" do
        let(:file){ "bench_iteration" }
        let(:ext) { ".rb" }
        it{ should eq(File.join(folder, "bench_iteration.rb")) }
      end

      describe "on a file in a sub folder" do
        let(:file){ "Array/bench_sort" }
        let(:ext) { ".rb" }
        it{ should eq(File.join(folder, "Array", "bench_sort.rb")) }
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
viiite-0.2.0 spec/unit/bdb/utils/test_bench_file.rb