Sha256: deffb8bc95610da3b502bc11c01b3bda7d615c0fb11bb7f048570d38043af308

Contents?: true

Size: 386 Bytes

Versions: 2

Compression:

Stored size: 386 Bytes

Contents

class UserDataSource < TestCentricity::DataSource
  def find_user_creds(node_name)
    UserData.current = UserData.new(environs.read('User_creds', node_name))
  end
end


class UserData < TestCentricity::DataPresenter
  attribute :username, String
  attribute :password, String

  def initialize(data)
    @username = data[:username]
    @password = data[:password]
    super
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
testcentricity-3.0.4 features/support/data/user_data.rb
testcentricity-3.0.3 features/support/data/user_data.rb