Added missing assert
Merge pull request #10042 from choudhuryanupam/fix_activesupport_test

Added missing assert