I see you use eq in a lot of places when comparing the class. Is there a reason not to use be_an_instance_of?
http://apidock.com/rspec/Spec/Matchers/be_an_instance_of