Fix rspec deplicated method