rspec test cases written for the update action