summaryrefslogtreecommitdiffstats
path: root/CLI/ruby/spec/game_of_life_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'CLI/ruby/spec/game_of_life_spec.rb')
-rw-r--r--CLI/ruby/spec/game_of_life_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/CLI/ruby/spec/game_of_life_spec.rb b/CLI/ruby/spec/game_of_life_spec.rb
index 89a0c87..a0013a6 100644
--- a/CLI/ruby/spec/game_of_life_spec.rb
+++ b/CLI/ruby/spec/game_of_life_spec.rb
@@ -181,8 +181,8 @@ RSpec.describe GameOfLife do
it "renders the game of life presentation" do
stub_const("BANNER", "")
stub_const("DELAY", 100.0)
- expect_any_instance_of(Kernel).to receive(:puts).with("\33c\e[3J")
- expect_any_instance_of(Kernel).to receive(:puts).twice
+ expect_any_instance_of(Kernel).to receive(:print).with("\e[?1049h\e[H")
+ expect_any_instance_of(Kernel).to receive(:print).twice
expect(universe).to receive(:to_s)
expect_any_instance_of(Kernel).to receive(:sleep)