Sha256: d81f85786b5b5b365c51a123f31b294da47431d245f2e5c106ea4cf2726d86ef
Contents?: true
Size: 836 Bytes
Versions: 5
Compression:
Stored size: 836 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe "MutuallyExclusiveCollection" do before(:each) do @good_team = FixedOdds.from_s '-275' @draw = FixedOdds.from_s '+429' @bad_team = FixedOdds.from_s '+915' @events = MutuallyExclusiveCollection.new [@draw, @bad_team, @good_team] end it "should return the bad team as the underdog" do @events.underdog.should == @bad_team end it "should return the good team as the favorite" do @events.favorite.should == @good_team end it "should return the events in descending probability" do @events.in_descending_probability.should == [@good_team, @draw, @bad_team] end it "should return the events in ascending probability" do @events.in_ascending_probability.should == [@bad_team, @draw, @good_team] end end
Version data entries
5 entries across 5 versions & 1 rubygems