Sha256: 77a065e363181bf76123d37becd693bc7f3c9d8140bf57074092469b59c3cf26

Contents?: true

Size: 464 Bytes

Versions: 5

Compression:

Stored size: 464 Bytes

Contents

require File.dirname(__FILE__) + '/helper'

require 'prx/client'
require 'prx/model'

class PRX::TestAccount < Test::Unit::TestCase

  def test_initialize
    a = PRX::Model::Account.new(:name=>'n', :id=>1, :type_name=>'Group')
    assert a.is_a?(PRX::Model::Account)
    assert_equal a.name, 'n'
    assert_equal a.id, 1
  end

  def test_to_hash
    a = PRX::Model::Account.new(:name=>'n', :id=>1)
    assert_equal a.to_hash, {"name"=>"n", "id"=>1}
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
prx_client-0.3.1 test/test_account.rb
prx_client-0.3.0 test/test_account.rb
prx_client-0.2.2 test/test_account.rb
prx_client-0.2.1 test/test_account.rb
prx_client-0.2.0 test/test_account.rb