Team Qameta Rspec

To use or not to use assert_predicate with minitest in Ruby

Recently RuboCop started to blame my assert something.booked? style tests in minitest and telling me this: Minitest/AssertPredicate: Prefer using `assert_predicate(something, :booked?)`. I’ve looked for the corresponding Pull Request and also checked the final Rubocop Minitest Style Guide: Assert Predicate. According to the documentation, we can read: