State machine 7 - rspec sample