added rspec test for the update action