spec/die_spec.rb in games_dice-0.3.11 vs spec/die_spec.rb in games_dice-0.3.12
- old
+ new
@@ -45,10 +45,10 @@
describe "#probabilities" do
it "should return the die's probability distribution as a GamesDice::Probabilities object" do
die = GamesDice::Die.new(6)
probs = die.probabilities
- probs.is_a?( GamesDice::Probabilities ).should be_true
+ probs.should be_a GamesDice::Probabilities
probs.to_h.should be_valid_distribution
probs.p_eql(1).should be_within(1e-10).of 1/6.0
probs.p_eql(2).should be_within(1e-10).of 1/6.0
\ No newline at end of file