Sha256: b0c480a0083cd5c1879d72b64823aaf3b4a98e913b95498b89d7dcb12f17cf28
Contents?: true
Size: 460 Bytes
Versions: 2
Compression:
Stored size: 460 Bytes
Contents
require 'helper' #AV.init :application_id => $LC_APPLICATION_ID, :api_key => $LC_APPLICATION_KEY class TestInit < Test::Unit::TestCase def setup AV.destroy end def test_no_api_keys_error fake = AV::Object.new "shouldNeverExist" fake["foo"] = "bar" begin fake.save rescue error_triggered = true end assert_equal error_triggered, true assert_equal fake[AV::Protocol::KEY_OBJECT_ID], nil end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
leancloud-ruby-client-0.1.1 | test/test_init.rb |
leancloud-ruby-client-0.1.0 | test/test_init.rb |