undefined local variable or method 'failure' error fix. Specs are all green now :D