Skip to content

Commit

Permalink
Change to fix test for rendering multi spinner inset
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Nov 25, 2018
1 parent c30da17 commit 2105282
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions spec/unit/multi/spin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,20 @@
output.rewind
expect(output.read).to eq([
"\e[1G#{top}| top\n",
"\e[1G#{bottom}| two\n",
"\e[1G#{middle}| one\n"
"\e[1G#{middle}| two\n",
"\e[1G#{bottom}| one\n"
].join)

spinner1.spin

output.rewind
expect(output.read).to eq([
"\e[1G#{top}| top\n",
"\e[1G#{bottom}| two\n",
"\e[1G#{middle}| one\n",
"\e[1G#{middle}| two\n",
"\e[1G#{bottom}| one\n",
save,
"\e[1A", # up 1 line
"\e[1G#{middle}/ one",
"\e[1G#{bottom}/ one",
restore
].join)

Expand All @@ -88,15 +88,15 @@
output.rewind
expect(output.read).to eq([
"\e[1G#{top}| top\n",
"\e[1G#{bottom}| two\n",
"\e[1G#{middle}| one\n",
"\e[1G#{middle}| two\n",
"\e[1G#{bottom}| one\n",
save,
"\e[1A", # up 1 line
"\e[1G#{middle}/ one",
"\e[1G#{bottom}/ one",
restore,
save,
"\e[2A", # up 2 lines
"\e[1G#{bottom}/ two",
"\e[1G#{middle}/ two",
restore
].join)
end
Expand Down

0 comments on commit 2105282

Please sign in to comment.