Sha256: e833fc166891ded1a2021e4b83e5b11f1280ba8472e019eb67fdd33fa70877b0
Contents?: true
Size: 414 Bytes
Versions: 1
Compression:
Stored size: 414 Bytes
Contents
require 'spec_helper' describe AbPanel::Config do let(:config) { AbPanel::Config.new } before do AbPanel::Config.any_instance.stub(:settings) { { exp1: { scenario1: 25, scenario2: 75 } } } end describe '.experiments' do subject { config.experiments } it { should =~ [:exp1] } end describe '.weights' do subject { config.weights('exp1') } it { should =~ [75.0, 25.0] } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ab_panel-0.3.0 | spec/ab_panel/config_spec.rb |