This expectation is somewhat tautological -- you called `CreditCard.new` and your test expects that the class of that object will be `CreditCard`. It's hard to imagine a scenario where this wouldn't be true. Since the initializer logic consists of assigning the instance variables, a better test might be to retrieve them and check that they were assigned (as I did in my example).