Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (18 sloc) 0.475 kb
require 'helper'
#Parse.init :application_id => $PARSE_APPLICATION_ID, :api_key => $PARSE_REST_API_KEY
class TestInit < Test::Unit::TestCase
def setup
Parse.destroy
end
def test_no_api_keys_error
fake = Parse::Object.new "shouldNeverExist"
fake["foo"] = "bar"
begin
fake.save
rescue
error_triggered = true
end
assert_equal error_triggered, true
assert_equal fake[Parse::Protocol::KEY_OBJECT_ID], nil
end
end
Jump to Line
Something went wrong with that request. Please try again.