Sha256: 35cffa3deed692f9ea8cb79c50b6a1aad668ff9440aa9470dfa8c3e2ea568315
Contents?: true
Size: 370 Bytes
Versions: 2
Compression:
Stored size: 370 Bytes
Contents
require 'faker' require 'data_magic/standard_translation' module <%= name.split('_').map(&:capitalize).join %> module Data class Base < WatirModel end class Defaults include DataMagic::StandardTranslation def self.translate(key) return new.send(:characters, 10) if key == :password new.send(key) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
watir_install-0.3.1 | lib/watir_install/generators/new/spec/support/data/base.rb.tt |
watir_install-0.3.0 | lib/watir_install/generators/new/spec/support/data/base.rb.tt |