@@ -12,7 +12,7 @@ def initialize(helper, expected, cmds: nil, limit: 100, collapsed: false, show_d
12
12
@expected = expected . to_a
13
13
@daff_csv_show_index = daff_csv_show_index
14
14
15
- Display . log ( 'Query returned no rows' , 'Results: Actual' ) if @actual . size == 0
15
+ Display . log ( 'query returned no rows' , 'Results: Actual' ) if @actual . size == 0
16
16
Display . table ( @expected , label : 'Results: Expected' , tab : true , allow_preview : true )
17
17
if show_daff_table && @actual . size > 0 && @expected != @actual
18
18
# set `index: true` to collect ordering data (row/column mapping)
@@ -55,7 +55,7 @@ def spec(&block)
55
55
if ( actual_row = actual &.first )
56
56
expect ( actual_row ) . to have_key ( key ) , "missing column \" #{ key } \" "
57
57
else
58
- RSpec ::Expectations . fail_with ( "the query returned no row " )
58
+ RSpec ::Expectations . fail_with ( "query returned no rows " )
59
59
end
60
60
end
61
61
@@ -69,7 +69,7 @@ def spec(&block)
69
69
RSpec ::Expectations . fail_with ( "missing column \" #{ key } \" " )
70
70
end
71
71
else
72
- RSpec ::Expectations . fail_with ( "the query returned no row " )
72
+ RSpec ::Expectations . fail_with ( "query returned no rows " )
73
73
end
74
74
end
75
75
end
@@ -91,7 +91,7 @@ def spec(&block)
91
91
if ( count = actual &.count )
92
92
expect ( count ) . to eq ( expected . count ) , "expected #{ expected . count } rows, got #{ count } rows"
93
93
else
94
- RSpec ::Expectations . fail_with ( "the query returned no row " )
94
+ RSpec ::Expectations . fail_with ( "query returned no rows " )
95
95
end
96
96
end
97
97
@@ -101,7 +101,7 @@ def spec(&block)
101
101
102
102
it "should match the expected" do
103
103
if actual . empty?
104
- RSpec ::Expectations . fail_with ( "the query returned no row " )
104
+ RSpec ::Expectations . fail_with ( "query returned no rows " )
105
105
else
106
106
expect ( actual ) . to eq_table expected
107
107
end
0 commit comments