ttytest2 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ttytest/assertions/screen_assertions.rb +3 -2
- data/lib/ttytest/version.rb +1 -1
- data/notes.txt +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c0fa1c262560d5866fd2332698f84cbb437774be387ef9913129a4dcd58d6cfc
|
|
4
|
+
data.tar.gz: fefd7044be11778ab833440aac04b8ffce35ee2bd73c3d9f15e395e936d45b32
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1c11961cf15fb34b8a5597e8e16bc3b138aedc4d99bdff553f10ef8438d06a752ee316a51a1b9443c519974a7c7475aaa7e17e281d1dfbc5aaa236c261c5b941
|
|
7
|
+
data.tar.gz: b8ff2913809b906c8fab6ef293a3c086546001622c4a1a7271efd54a6934d9176f0e94af87de78c013134b4d7b3ce4a3530d5e8782529cdf11b38a58776fbd9e
|
|
@@ -18,13 +18,14 @@ module TTYtest
|
|
|
18
18
|
alias assert_screen assert_contents
|
|
19
19
|
|
|
20
20
|
# Asserts the contents of the terminal at specified rows
|
|
21
|
+
# @param [Integer] row_start the row (starting from 0) to test against
|
|
22
|
+
# @param [Integer] row_end the last row to test against
|
|
21
23
|
# @param [String] expected the expected contents of the terminal at specified rows. Trailing whitespace on each line is ignored
|
|
22
24
|
# @raise [MatchError] if the terminal doesn't match the expected content
|
|
23
25
|
def assert_contents_at(row_start, row_end, expected)
|
|
24
26
|
validate(row_end)
|
|
25
|
-
row_end += 1 if row_end.zero?
|
|
26
27
|
|
|
27
|
-
matched, diff = get_diff(expected, rows
|
|
28
|
+
matched, diff = get_diff(expected, rows[row_start..row_end])
|
|
28
29
|
|
|
29
30
|
return if matched
|
|
30
31
|
|
data/lib/ttytest/version.rb
CHANGED
data/notes.txt
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ttytest2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.6.
|
|
4
|
+
version: 1.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alex Eski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|