spec/unit/basic/page_spec.rb in tty-pager-0.7.1 vs spec/unit/basic/page_spec.rb in tty-pager-0.8.0

- old
+ new

@@ -29,11 +29,18 @@ "It is not ", "down on ", "any map; ", "true ", "", - "--- Page -1- Press enter/return to continue (or q to quit) ---", + "--- Page ", + "-1- Press ", + "e", + "nter/retur", + "n to ", + "continue ", + "(or q to ", + "quit) ---", "places ", "never are.\n" ].join("\n")) end @@ -109,10 +116,10 @@ it "preserves new lines when breaking" do text = "a\na\na\na\na\na\na\na\na\na" input << "\n\n\n" input.rewind pager = described_class.new(output: output, input: input, - width: 1, height: 5) + width: 80, height: 5) pager.page(text) expect(output.string).to eq([ "a", "a", "a",