Sha256: 23160b9d3309f9547d20afb63962263734190075a92b25a73086021450d23e0d
Contents?: true
Size: 437 Bytes
Versions: 5
Compression:
Stored size: 437 Bytes
Contents
load './helper.rb' require 'prx/client' require 'prx/model' require 'net/http' class PRX::TestSeries < Test::Unit::TestCase def test_initialize s = PRX::Model::Series.new(:title=>'t', :id=>1) assert s.is_a?(PRX::Model::Series) assert_equal s.title, 't' assert_equal s.id, 1 end def test_to_hash s = PRX::Model::Series.new(:title=>'t', :id=>1) assert_equal s.to_hash, {"title"=>"t", "id"=>1} end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
prx_client-0.1.3 | test/test_series.rb |
prx_client-0.1.2 | test/test_series.rb |
prx_client-0.1.1 | test/test_series.rb |
prx_client-0.1.0 | test/test_series.rb |
prx_client-0.0.2 | test/test_series.rb |