Sha256: 1fde39280ff3c906e0135df60080cf51cc4e166c1736140d3d3826726bf2661a
Contents?: true
Size: 754 Bytes
Versions: 8
Compression:
Stored size: 754 Bytes
Contents
require 'spec_helper' require_relative './test_utils' config = Dropbox::Sign.configure api_client = Dropbox::Sign::ApiClient.new(config) describe Dropbox::Sign::EventCallbackHelper do context 'EventCallbackHelper' do fixture_data = get_fixture_data('EventCallbackHelper') api_key = '324e3b0840f065eb51f3fd63231d0d33daa35d4ed10d27718839e81737065782' api_key_rev = api_key.reverse fixture_data.each do |key, data| it "event callback for type #{key} is valid" do obj = Dropbox::Sign::EventCallbackRequest.init(data) expect(Dropbox::Sign::EventCallbackHelper.is_valid(api_key, obj)).to eq(true) expect(Dropbox::Sign::EventCallbackHelper.is_valid(api_key_rev, obj)).to eq(false) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems