Top Level Namespace

Defined Under Namespace

Modules: Capybara, Decidim

Instance Method Summary collapse

Instance Method Details

#format_birthdate(birthdate) ⇒ Object



6
7
8
# File 'lib/decidim/votings/test/factories.rb', line 6

def format_birthdate(birthdate)
  format("%04d%02d%02d", birthdate.year, birthdate.month, birthdate.day) # rubocop:disable Style/FormatStringToken
end

#hash_for(*data) ⇒ Object



10
11
12
# File 'lib/decidim/votings/test/factories.rb', line 10

def hash_for(*data)
  Digest::SHA256.hexdigest(data.join("."))
end