Module: ExAequo::RSpex::Macros::LetMacros

Defined in:
lib/ex_aequo/rspex/macros/let_macros.rb

Instance Method Summary collapse

Instance Method Details

#let_alphanumeric_random(name, length: 16) ⇒ Object



9
10
11
# File 'lib/ex_aequo/rspex/macros/let_macros.rb', line 9

def let_alphanumeric_random(name, length: 16)
  let(name) { SecureRandom.alphanumeric(length) }
end

#let_double(name, type) ⇒ Object



13
14
15
# File 'lib/ex_aequo/rspex/macros/let_macros.rb', line 13

def let_double(name, type)
  let(name) { double(type) }
end