Sha256: 9e25490bd27846d45ac7149c49738341ce780319d158d0b160bcd3ffca6e56f9

Contents?: true

Size: 429 Bytes

Versions: 5

Compression:

Stored size: 429 Bytes

Contents

load './helper.rb'
require 'prx/client'
require 'prx/model'
require 'net/http'

class PRX::TestUser < Test::Unit::TestCase

  def test_initialize
    s = PRX::Model::User.new(:email=>'t', :id=>1)
    assert s.is_a?(PRX::Model::User)
    assert_equal s.email, 't'
    assert_equal s.id, 1
  end

  def test_to_hash
    s = PRX::Model::User.new(:email=>'t', :id=>1)
    assert_equal s.to_hash, {"email"=>"t", "id"=>1}
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
prx_client-0.1.3 test/test_user.rb
prx_client-0.1.2 test/test_user.rb
prx_client-0.1.1 test/test_user.rb
prx_client-0.1.0 test/test_user.rb
prx_client-0.0.2 test/test_user.rb