Updated Rakefile and deprecated metohods for rspec