Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

spec invalid experiment strategy arguments

  • Loading branch information...
commit ace458744904a0b62ee26e735853226071dee16b 1 parent 1fcff25
Justin Jones authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 spec/experiment_strategy_spec.rb
View
8 spec/experiment_strategy_spec.rb
@@ -89,6 +89,14 @@
it "should return false for invalid parameters" do
Trebuchet.aim(@feature_name, :experiment, :name => @experiment_name, :bucket => 900)
Trebuchet.feature(@feature_name).strategy.should_not be_valid
+ Trebuchet.aim(@feature_name, :experiment, :name => @experiment_name, :bucket => 1, :total_buckets => -17)
+ Trebuchet.feature(@feature_name).strategy.should_not be_valid
+ Trebuchet.aim(@feature_name, :experiment, :name => @experiment_name, :bucket => 10, :total_buckets => 3)
+ Trebuchet.feature(@feature_name).strategy.should_not be_valid
+ Trebuchet.aim(@feature_name, :experiment, :name => @experiment_name)
+ Trebuchet.feature(@feature_name).strategy.should_not be_valid
+ Trebuchet.aim(@feature_name, :experiment, :bucket => 1)
+ Trebuchet.feature(@feature_name).strategy.should_not be_valid
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.