This is a little roundabout, perhaps

```ruby
expect(remaining_preferences.all? { |p| p[:value] =~ /sanitized/ }).to be_true
```