Sha256: 1c01f7dd665beab003a7d1adc7fda1a227dfa7702d0814a4bcb3d7b41bfa43e1

Contents?: true

Size: 754 Bytes

Versions: 3

Compression:

Stored size: 754 Bytes

Contents

require 'helper'

class TestCloud < ParseTestCase
	# functions stored in test/cloud_functions/MyCloudCode
	# see https://parse.com/docs/cloud_code_guide to learn how to use Parse Cloud Code
	#
	# Parse.Cloud.define('trivial', function(request, response) {
  # 	response.success(request.params);
	# });

	def test_cloud_function_initialize
		assert_not_equal nil, Parse::Cloud::Function.new("trivial")
	end

	def test_cloud_function
		omit("this should automate the parse deploy command by committing that binary to the repo")

		VCR.use_cassette('test_cloud_function', :record => :new_episodes) do
			function = Parse::Cloud::Function.new("trivial")
			params = {"foo" => "bar"}
			resp = function.call(params)
			assert_equal resp, params
		end
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
parse-ruby-client-0.3.0 test/test_cloud.rb
parse-ruby-client-0.2.0 test/test_cloud.rb
parse-ruby-client-0.1.15 test/test_cloud.rb