Sha256: e074715fc026afde02f10edd100e5087885e41f63ecfcad1e4af94db5c656182
Contents?: true
Size: 462 Bytes
Versions: 3
Compression:
Stored size: 462 Bytes
Contents
shared_examples_for "a Supersedable model" do it { is_expected.to have_db_column(:deactivated_at) } it { is_expected.to have_db_index(:deactivated_at) } it "adds a deactivated_at where clause" do expect(described_class.all.where_sql).to include(".\"deactivated_at\" IS NULL") end it "skips adding the deactivated_at where clause when unscoped" do expect(described_class.unscoped.where_sql.to_s).not_to include("\"deactivated_at\"") end end
Version data entries
3 entries across 3 versions & 1 rubygems