diff --git a/spec/extensions/subset_conditions_spec.rb b/spec/extensions/subset_conditions_spec.rb index 7eb225b87..faefd8d1e 100644 --- a/spec/extensions/subset_conditions_spec.rb +++ b/spec/extensions/subset_conditions_spec.rb @@ -36,6 +36,9 @@ @c.dataset_module{subset(:active, p2)} @c.where(@c.active_conditions).sql.must_equal @c.active.sql + @c.dataset_module{exclude(:inactive){p2}} + @c.where(@c.inactive_conditions).sql.must_equal @c.inactive.sql + @c.dataset_module{subset(:active_published, p2, &p1)} @c.where(@c.active_published_conditions).sql.must_equal @c.active_published.sql @c.where(Sequel.&(@c.active_conditions, @c.published_conditions)).sql.must_equal @c.active_published.sql