fixpoints 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fixpoint_test_helpers.rb +2 -3
- data/lib/fixpoints/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fc86155d7a0255ba0b6001e2d9a848820a88679faf80a009523ce169d87bb47
|
4
|
+
data.tar.gz: b05dff89ee223f26b9aaaddbe8b076b11b07d941dda4c6b25de770e833066700
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d93cbb9284a2012294e880b1a4a1a2f65d5fbae6acb7a333e19de1f141ba492ecbace36e7123c78a293c0d19d018f6715f90733e9d8b98d1d56fdfde28a2643
|
7
|
+
data.tar.gz: 8564d92f6540959ff166ea5cbbd1f82a6ab4cffe839141fbf65152e6cb53a71ddfee08cc583243842120c3b6f7167523b024179015a9c6996bcf4c9640cf3fbb
|
@@ -32,10 +32,9 @@ module FixpointTestHelpers
|
|
32
32
|
|
33
33
|
tables_to_compare = (database_fp.table_names + fixpoint_fp.table_names).uniq if tables_to_compare == :all
|
34
34
|
tables_to_compare.each do |table_name|
|
35
|
-
db_records = database_fp.records_for_table(table_name, ignored_columns)
|
36
|
-
fp_records = fixpoint_fp.records_for_table(table_name, ignored_columns)
|
35
|
+
db_records = database_fp.records_for_table(table_name, ignored_columns) || []
|
36
|
+
fp_records = fixpoint_fp.records_for_table(table_name, ignored_columns) || []
|
37
37
|
|
38
|
-
expect(fp_records).not_to be_empty, "#{table_name} not in fixpoint, but in database"
|
39
38
|
# we assume that the order of records returned by SELECT is stable (so we do not do any sorting)
|
40
39
|
expect(db_records).to eq(fp_records), "Database records for table \"#{table_name}\" did not match fixpoint \"#{fixname}\". Consider removing the fixpoint and re-running the test if the change is intended."
|
41
40
|
end
|
data/lib/fixpoints/version.rb
CHANGED