rspec-xlsx_matchers 0.1.2 → 0.1.4
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1465d990a256a7f4407284c21bf2f656a369d5008d7c2b9c2df053be9f07d01
|
4
|
+
data.tar.gz: a46a178d9225158efb189a3387d2941b60afee46dc84a45ae3616aa70f11e36f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7ce34db6bac2e363f5a297ad303ba444187108a1e1bda7da2bcc2c69bc89342e955387fff18a611ac2799eac59a2a23282444629894761e50b2f1be8402f716
|
7
|
+
data.tar.gz: 842250df331a05307531e830445c4d88422e900235a8f5dffb48cbccab42e4c4764622fea5ef25c5902d1810e8b787cce84c22146060fce6039b1a4966e3c422
|
@@ -19,10 +19,18 @@ module RSpec
|
|
19
19
|
return row_not_found_message if row_not_found?
|
20
20
|
return column_not_found_message if column_not_found?
|
21
21
|
|
22
|
-
"Mismatch cell value in column
|
22
|
+
"Mismatch cell value in column #{failure_message_in_column} of row '#{row_index}': " \
|
23
23
|
"expected: '#{expected_value}', received: '#{actual_value}'"
|
24
24
|
end
|
25
25
|
|
26
|
+
def failure_message_in_column
|
27
|
+
if column_name.nil?
|
28
|
+
"column with index #{column_index}"
|
29
|
+
else
|
30
|
+
"column '#{column_name}'"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
26
34
|
private
|
27
35
|
|
28
36
|
def process_axlsx_sheet
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-xlsx_matchers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- drvn-eb
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|