Sha256: 9cb8c44091f0911749c2c4fc8258f78604837f66a5d5fda93e7a227ae9baa5bf
Contents?: true
Size: 697 Bytes
Versions: 2
Compression:
Stored size: 697 Bytes
Contents
require_relative "./helpers" describe BigBench::Configuration do it "should store the config values" do BigBench.configure do |config| config.duration = 10.seconds config.output = "test.ljson" config.users = 20 end BigBench.config.duration.should == 10.seconds BigBench.config.output.should == "test.ljson" BigBench.config.users.should == 20 end it "should allow to set options seperately" do BigBench.config.duration = 5.seconds BigBench.config.duration.should == 5.seconds end it "should raise an exception if no configure block is specified" do lambda {BigBench.configure}.should raise_error end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bigbench-0.0.6 | spec/configure_spec.rb |
bigbench-0.0.5 | spec/configure_spec.rb |