Sha256: 65bb93bcb2b00b9dae2364d5340213ddeec31b3c73baacec7f2baf62a075c4b9
Contents?: true
Size: 437 Bytes
Versions: 4
Compression:
Stored size: 437 Bytes
Contents
load './helper.rb' require 'prx/client' require 'prx/model' require 'net/http' class PRX::TestAccount < Test::Unit::TestCase def test_initialize a = PRX::Model::Account.new(:name=>'n', :id=>1) 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
prx_client-0.1.2 | test/test_account.rb |
prx_client-0.1.1 | test/test_account.rb |
prx_client-0.1.0 | test/test_account.rb |
prx_client-0.0.2 | test/test_account.rb |