tried to debug the rspec nomethod but not successful, post online for help