Update RSpec expectations syntax using Transpec

:information_desk_person: The API for RSpec::Expectations has changed in v3.0. These changes update the existing tests to use the `:expect` syntax.