acpc_poker_basic_proxy 3.2.1 → 3.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8830e03ad490d6a24dac3b73c647fee5988aea43
4
- data.tar.gz: e476afcc89336bd58bf33d5b2c2ae88776d9525d
3
+ metadata.gz: f4b2314091a01fa67ae42431f71edb1fa2af9b93
4
+ data.tar.gz: 42964fb8fb00e9d4499fb335eac927fccb94fe56
5
5
  SHA512:
6
- metadata.gz: 3c160055f942244c12365e97893236e53c74acdb94329ebeedc41f53686eb535c4023fb33ba8fc142d2d8676666d1a228027636459dd530e9b8ecf6205fa13a2
7
- data.tar.gz: f98d89ceb150f1c073abbb9a0a32ce2a6f26a11a70daa68ef5bcdcb2ebcd2bc347dd5abd4787d1b60015ada37d40c97b189bf06c7315d9fc150ea705f6c5cffd
6
+ metadata.gz: 98cdfa43e9547074384b96f2c7f475112e425cf8d3cedbb9ef9843e48c5d52aa37dafa8e67b4f2f90b93ba9201e587a95be55b8f69ddb012d29067c748dcf8f2
7
+ data.tar.gz: 114d31d3254909d040b7abd8840a55322ccc5b8c7035009cacf7cb64bfbac858edc61d3efd88afce015ecb1966ae082552c879560ce92afa376d08b3ede521da
@@ -1,3 +1,3 @@
1
1
  module AcpcPokerBasicProxy
2
- VERSION = "3.2.1"
2
+ VERSION = "3.2.2"
3
3
  end
@@ -19,7 +19,7 @@ describe BasicProxy do
19
19
  let(:delaer_info) do
20
20
  AcpcDealer::ConnectionInformation.new port_number, host_name
21
21
  end
22
- let(:dealer_communicator) { MiniTest::Mock.new 'DealerStream' }
22
+ let(:dealer_communicator) { MiniTest::Mock.new }
23
23
 
24
24
  let(:patient) do
25
25
  fussy = ->(port, host) do
@@ -70,8 +70,9 @@ describe BasicProxy do
70
70
  match_state == match.current_hand.next_action.state &&
71
71
  match.current_hand.next_action.seat == seat
72
72
  )
73
+ dealer_communicator.expect :call, nil
73
74
  fussy = ->(dealer_communicator_, match_state_, action_) do
74
- dealer_communicator_.must_equal dealer_communicator
75
+ dealer_communicator_.call
75
76
  match_state_.must_equal match_state.to_s
76
77
  action_.must_equal action
77
78
  end
@@ -112,7 +113,7 @@ describe BasicProxy do
112
113
  end
113
114
  describe '#send_action' do
114
115
  it 'raises an exception if a match state was not received before an action was sent' do
115
- -> {patient.send_action(MiniTest::Mock.new('PokerAction'))}.must_raise(
116
+ -> {patient.send_action(MiniTest::Mock.new)}.must_raise(
116
117
  BasicProxy::InitialMatchStateNotYetReceived
117
118
  )
118
119
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acpc_poker_basic_proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Morrill