Fixed rspec depc warnings