Skip to content

Commit 9a6e466

Browse files
committed
updated readme investigate intermittent spec failure
1 parent 179353c commit 9a6e466

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/hyper-state/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Revisiting the Tic Tac Toe Game
44

5-
The easiest way to understand HyperState is by example. If you you did not see the Tic-Tac-Toe example, then **[please review it now](client-dsl/interlude-tic-tac-toe.md)**, as we are going to use this to demonstrate how to use the `Hyperstack::State::Observable` module.
5+
The easiest way to understand HyperState is by example. If you you did not see the Tic-Tac-Toe example, then **[please review it now](/client-dsl/interlude-tic-tac-toe.md)**, as we are going to use this to demonstrate how to use the `Hyperstack::State::Observable` module.
66

77
In our original Tic-Tac-Toe implementation the state of the game was stored in the `DisplayGame` component. State was updated by
88
"bubbling up" events from lower level components up to `DisplayGame` where the event handler updated the state.

ruby/hyper-model/spec/batch3/has_and_belongs_to_many_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ class Patient < ActiveRecord::Base
8888
expect { Physician.first.patients.count }.on_client_to eq(1)
8989

9090
Patient.create(name: 'Spock').physicians << mccoy
91+
sleep 0.2
9192
expect { Hyperstack::Model.load { Physician.first.patients.count } }.on_client_to eq(2)
9293

9394
on_client { Patient.create(name: 'Uhuru') }

0 commit comments

Comments
 (0)