fix 'uninitialized instance variable' warning

Running specs in my Rails 4.1.2.rc1 app with warnings turned on prints this warning, and just this warning. So I fixed it. :)
Merge pull request #1085 from indirect/patch-1

fix 'uninitialized instance variable' warning