Use class_eval so all rspec versions are supported