Used more idiomatic rspec syntax to evaluate final result as suggested by @mjgiarlo