Sha256: 2a96f75d00c89cb0c84771552c1c67f50792bfdbdbe4622d2ca49a67ed6f4edb

Contents?: true

Size: 478 Bytes

Versions: 5

Compression:

Stored size: 478 Bytes

Contents

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

class PRX::TestNetwork < Test::Unit::TestCase

  def test_initialize
    a = PRX::Model::Network.new(:name=>'n', :id=>1, :path=>'p')
    assert a.is_a?(PRX::Model::Network)
    assert_equal a.name, 'n'
    assert_equal a.id, 1
    assert_equal a.path, 'p'
  end

  def test_to_hash
    a = PRX::Model::Network.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.1.3 test/test_network.rb
prx_client-0.1.2 test/test_network.rb
prx_client-0.1.1 test/test_network.rb
prx_client-0.1.0 test/test_network.rb
prx_client-0.0.2 test/test_network.rb