Moved setting of secret in test to spec/spec_helper.rb, to make sure it
was set before being used by any test.