acpc_poker_basic_proxy 3.2.1 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/acpc_poker_basic_proxy/version.rb +1 -1
- data/spec/basic_proxy_spec.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4b2314091a01fa67ae42431f71edb1fa2af9b93
|
4
|
+
data.tar.gz: 42964fb8fb00e9d4499fb335eac927fccb94fe56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98cdfa43e9547074384b96f2c7f475112e425cf8d3cedbb9ef9843e48c5d52aa37dafa8e67b4f2f90b93ba9201e587a95be55b8f69ddb012d29067c748dcf8f2
|
7
|
+
data.tar.gz: 114d31d3254909d040b7abd8840a55322ccc5b8c7035009cacf7cb64bfbac858edc61d3efd88afce015ecb1966ae082552c879560ce92afa376d08b3ede521da
|
data/spec/basic_proxy_spec.rb
CHANGED
@@ -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
|
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_.
|
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
|
116
|
+
-> {patient.send_action(MiniTest::Mock.new)}.must_raise(
|
116
117
|
BasicProxy::InitialMatchStateNotYetReceived
|
117
118
|
)
|
118
119
|
end
|