summaryrefslogtreecommitdiffstats
path: root/CLI/ruby/spec
diff options
context:
space:
mode:
authora14m <[email protected]>2021-02-10 22:44:29 +0100
committera14m <[email protected]>2021-02-10 22:44:29 +0100
commit1dfa5fcb5e860bb90e23f8381b1aa5ee2a469d68 (patch)
tree6ec5ef3dc99784721a79bbb28a49139845387f53 /CLI/ruby/spec
parent9ba51d3f6b2920291deb0793413661b29322b75a (diff)
parent80776ace98f5d532366e4432beaf20cd96e10a3b (diff)
Merge branch 'feature/ruby-canavas'
Diffstat (limited to 'CLI/ruby/spec')
-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)