Sha256: 2c549e0ed88a30a3fc1cefbf4a496535c44ac9fe9630c0740b4ca2bd502106db
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
require_relative 'support/spec_helper' require 'acpc_dealer' require 'acpc_poker_types' require 'acpc_poker_basic_proxy/communication_logic/match_state_receiver' require 'acpc_poker_basic_proxy/communication_logic/dealer_stream' describe AcpcPokerBasicProxy::CommunicationLogic::MatchStateReceiver do before(:each) do @connection = MiniTest::Mock.new end describe "#receive_matchstate_string" do it 'receives matchstate strings properly' do match_logs.each do |log_description| match = AcpcPokerTypes::AcpcDealerData::PokerMatchData.parse_files( log_description.actions_file_path, log_description.results_file_path, log_description.player_names, AcpcDealer::DEALER_DIRECTORY, 60 ) match.for_every_seat! do |seat| match.for_every_hand! do match.for_every_turn! do @connection.expect(:gets, match.current_hand.current_match_state.to_s) AcpcPokerBasicProxy::CommunicationLogic::MatchStateReceiver .receive_match_state(@connection).must_equal match.current_hand.current_match_state end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acpc_poker_basic_proxy-2.0.0 | spec/match_state_receiver_spec.rb |