Sha256: ab1c78e58649a4f3601d0e40ac5d4b9ad887d6a7d1cc1121a67f2d876fefb58c

Contents?: true

Size: 435 Bytes

Versions: 6

Compression:

Stored size: 435 Bytes

Contents

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

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

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

6 entries across 6 versions & 1 rubygems

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