Skip to content

Commit 1758b81

Browse files
committed
Fix typos in failure messages
1 parent 23aa3ae commit 1758b81

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/sql_spec_helper/compare.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def initialize(helper, expected, cmds: nil, limit: 100, collapsed: false, show_d
1212
@expected = expected.to_a
1313
@daff_csv_show_index = daff_csv_show_index
1414

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
1616
Display.table(@expected, label: 'Results: Expected', tab: true, allow_preview: true)
1717
if show_daff_table && @actual.size > 0 && @expected != @actual
1818
# set `index: true` to collect ordering data (row/column mapping)
@@ -55,7 +55,7 @@ def spec(&block)
5555
if (actual_row = actual&.first)
5656
expect(actual_row).to have_key(key), "missing column \"#{key}\""
5757
else
58-
RSpec::Expectations.fail_with("the query returned no row")
58+
RSpec::Expectations.fail_with("query returned no rows")
5959
end
6060
end
6161

@@ -69,7 +69,7 @@ def spec(&block)
6969
RSpec::Expectations.fail_with("missing column \"#{key}\"")
7070
end
7171
else
72-
RSpec::Expectations.fail_with("the query returned no row")
72+
RSpec::Expectations.fail_with("query returned no rows")
7373
end
7474
end
7575
end
@@ -91,7 +91,7 @@ def spec(&block)
9191
if (count = actual&.count)
9292
expect(count).to eq(expected.count), "expected #{expected.count} rows, got #{count} rows"
9393
else
94-
RSpec::Expectations.fail_with("the query returned no row")
94+
RSpec::Expectations.fail_with("query returned no rows")
9595
end
9696
end
9797

@@ -101,7 +101,7 @@ def spec(&block)
101101

102102
it "should match the expected" do
103103
if actual.empty?
104-
RSpec::Expectations.fail_with("the query returned no row")
104+
RSpec::Expectations.fail_with("query returned no rows")
105105
else
106106
expect(actual).to eq_table expected
107107
end

0 commit comments

Comments
 (0)