Tried to fix syntax error for older versions of rspec