Skip to content

Instantly share code, notes, and snippets.

@Fercell
Created January 21, 2015 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fercell/7eef111fca0c8f4d9258 to your computer and use it in GitHub Desktop.
Save Fercell/7eef111fca0c8f4d9258 to your computer and use it in GitHub Desktop.
let()
let(:account) do { sysadmin: { email: 'sysadmin@demo.com', password: 'samplepass' },
support: { email: 'support@demo.com', password: 'samplepass' },
user: { email: 'user@demo.com', password: 'samplepass'},
temporary_password: 'anotherpass'}
let(:query) { "email:'#{account[:user][:email]}' AND subject:'Reset password instructions' AND ts:[#{date_from.to_i} TO #{Time.now.to_i + 7200}]" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment