Sha256: 23d80aa407b0943340051c6c7b4714dfdc4bdcd1f8f39f2fdf0b38bb50bb23e6
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
require_relative "./helpers" describe BigBench::Configuration do it "should store the config values" do BigBench.configure = { :duration => 10.seconds, :output => "test.ljson", :users => 20 } 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 check the minimal options" do BigBench.config.should_not be_valid BigBench.configure = { :duration => 10.seconds, :output => "test.ljson", :users => 20 } BigBench.config.should be_valid end it "should allow to check the validity of the config" do lambda {BigBench.check_config!}.should raise_error(BigBench::Configuration::InvalidOptions, "At least: #{BigBench::Configuration::Config::VALIDATE_OPTIONS.join(', ')} are required") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bigbench-0.0.4 | spec/configure_spec.rb |
bigbench-0.0.3 | spec/configure_spec.rb |
bigbench-0.0.2 | spec/configure_spec.rb |