Sha256: ed91ef253b9aa12e8206871a0d51d81d8790c5f081754e5a0f430f63fcf20286
Contents?: true
Size: 877 Bytes
Versions: 1
Compression:
Stored size: 877 Bytes
Contents
require 'spec_helper' module Viiite class BDB describe Immediate, "#dataset" do let(:bdb){ Immediate.new(fixtures_folder+'/bdb') } subject{ bdb.dataset(name) } describe "when the file exists in root folder (String)" do let(:name){ "bench_iteration" } it{ should be_a(Viiite::Benchmark) } end describe "when the file exists in root folder (Symbol)" do let(:name){ :bench_iteration } it{ should be_a(Viiite::Benchmark) } end describe "when the file exists in a sub folder (String)" do let(:name){ "Array/bench_sort" } it{ should be_a(Viiite::Benchmark) } end describe "when the file does not exist" do let(:name){ "NotA/Class/bench_non_existing" } specify{ lambda{subject}.should raise_error(::Alf::NoSuchDatasetError) } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
viiite-0.2.0 | spec/unit/bdb/immediate/test_dataset.rb |