Sha256: 3e4c3d1a06eb33b67e7c2b9156cbdfbde408162c6953de9b88be3215ef3ca829
Contents?: true
Size: 457 Bytes
Versions: 2
Compression:
Stored size: 457 Bytes
Contents
require 'helper' class TestModelObject < AV::Model end class TestModel < AVTestCase def test_new VCR.use_cassette('test_new_model', :record => :new_episodes) do tmo = TestModelObject.new assert_equal tmo.new?, true tmo.save assert_equal tmo.new?, false end end def test_superclass tmo = TestModelObject assert_equal tmo.superclass, AV::Model assert_equal tmo.superclass.superclass, AV::Object end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
leancloud-ruby-client-0.1.1 | test/test_model.rb |
leancloud-ruby-client-0.1.0 | test/test_model.rb |