#525 Adding rspec tests not completed
#525 Fixed my test cases for the contest show method
#525 Added an if condition in the view of the contest