Sha256: 34e367af67e790d65346743abbe27609e9a777b4144a008c4dcd063c8cb3cbc0

Contents?: true

Size: 509 Bytes

Versions: 8

Compression:

Stored size: 509 Bytes

Contents

require 'helper'

class TestModelObject < Parse::Model
end

class TestModel < Test::Unit::TestCase
  def setup
    Parse.init
  end

  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, Parse::Model
    assert_equal tmo.superclass.superclass, Parse::Object
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
parse-ruby-client-0.1.14 test/test_model.rb
parse-ruby-client-0.1.13 test/test_model.rb
parse-ruby-client-0.1.12 test/test_model.rb
parse-ruby-client-0.1.11 test/test_model.rb
parse-ruby-client-0.1.10 test/test_model.rb
parse-ruby-client-0.1.9 test/test_model.rb
parse-ruby-client-0.1.8 test/test_model.rb
parse-ruby-client-0.1.7 test/test_model.rb