Sha256: 31cdea571049ceecda7701762cf6a692d85af9e63b5437753e0690068dc34f12
Contents?: true
Size: 746 Bytes
Versions: 1
Compression:
Stored size: 746 Bytes
Contents
require 'tarzan/games/odds_and_evens/move' module Tarzan module Games module OddsAndEvens describe Move do describe '<=>' do context 'given that victory is on odds and a hand of 3 fingers' do let (:move_p1) { Move.new wins_on_odds: true, fingers: 3 } context 'versus a hand of 4 fingers' do let (:move_p2) { Move.new wins_on_odds: false, fingers: 4 } it { expect(move_p1 <=> move_p2).to eq 1} end context 'versus a hand of 5 fingers' do let (:move_p2) { Move.new wins_on_odds: false, fingers: 5 } it { expect(move_p1 <=> move_p2).to eq -1} end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tarzan-0.0.3 | spec/tarzan/games/odds_and_evens/move_spec.rb |