change test to check login variable instead of hardcoded value
Merge pull request #376 from joeyw/fix-gist-spec

change test to check login variable instead of hardcoded value