I cant figure out how to use a simple global variable in an rspec test. It seems like such a trivial feature but after much goggleing I havent been able to find a solution.
It turns out the easiest way is to use a $ sign to indicate a global variable.
See Preserve variable in cucumber?