Update the syntax of rspec and remove whitespaces