Sha256: 8a1528e32b59e6e02792bd250b106b73ebeaf9de29f2fecb851c0afeb2bfd3c8

Contents?: true

Size: 346 Bytes

Versions: 122

Compression:

Stored size: 346 Bytes

Contents

module UserHelpers
  def self.system_user
    Marty::User.find_by_login('marty') # (system_login)
  end

  def self.create_user(name)
    Marty::User.find_or_create_by!(login: name,
                                   firstname: name,
                                   lastname: 'test',
                                   active: true)
  end
end

Version data entries

122 entries across 122 versions & 1 rubygems

Version Path
marty-2.4.0 spec/support/user_helpers.rb
marty-2.3.14 spec/support/user_helpers.rb
marty-2.3.13 spec/support/user_helpers.rb
marty-2.3.12 spec/support/user_helpers.rb
marty-2.3.11 spec/support/user_helpers.rb
marty-2.3.10 spec/support/user_helpers.rb
marty-2.3.9 spec/support/user_helpers.rb
marty-2.3.8 spec/support/user_helpers.rb
marty-2.3.7 spec/support/user_helpers.rb
marty-2.3.5 spec/support/user_helpers.rb
marty-2.3.4 spec/support/user_helpers.rb
marty-2.1.5 spec/support/user_helpers.rb
marty-2.3.2 spec/support/user_helpers.rb
marty-2.3.1 spec/support/user_helpers.rb
marty-2.3.0 spec/support/user_helpers.rb
marty-2.1.4 spec/support/user_helpers.rb
marty-2.1.3 spec/support/user_helpers.rb
marty-2.1.2 spec/support/user_helpers.rb
marty-2.1.1 spec/support/user_helpers.rb
marty-2.1.0 spec/support/user_helpers.rb