Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 37539d28b1
Fetching contributors…

Cannot retrieve contributors at this time

file 9 lines (8 sloc) 0.279 kb
1 2 3 4 5 6 7 8 9
ActiveSupport::SecureRandom = SecureRandom

Given /^there are the following users:$/ do |table|
  table.hashes.each do |attributes|
    unconfirmed = attributes.delete("unconfirmed") == "true"
    @user = User.create!(attributes)
    @user.confirm! unless unconfirmed
  end
end
Something went wrong with that request. Please try again.