The `with` taking block without normal arguments has a issue with block form (that's why Transpec converted `do end` to `{ }`), and it's deprecated in RSpec 2.99 then removed in 3.0, In this case you need to remove the `.with` and the last `true` in the block.

For more detail: https://github.com/rspec/rspec-mocks/issues/377