Skip to content

Commit

Permalink
Add subset_conditions spec for use of exclude with block
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed Nov 30, 2024
1 parent 17afae1 commit f92c4aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/extensions/subset_conditions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f92c4aa

Please sign in to comment.