Sha256: 326b38ff3f89aa145dd142c61ba2d2a3a58d3f7cbc999f61848121ca3bc005f4
Contents?: true
Size: 1.5 KB
Versions: 1
Compression:
Stored size: 1.5 KB
Contents
# frozen_string_literal: true require 'spec_helper' class DeleteMethodClass include ::ActiveRemote::Cached def self.find nil end def self.search nil end cached_finders_for :guid cached_finders_for :guid, :user_guid cached_finders_for %i[user_guid client_guid] cached_finders_for %i[derp user_guid client_guid] end describe DeleteMethodClass do describe 'API' do it "creates 'cached_delete_by_guid'" do expect(DeleteMethodClass).to respond_to(:cached_delete_by_guid) end it "creates 'cached_delete_by_user_guid'" do expect(DeleteMethodClass).to respond_to(:cached_delete_by_user_guid) end it "creates 'cached_delete_by_user_guid_and_client_guid'" do expect(DeleteMethodClass).to respond_to(:cached_delete_by_user_guid_and_client_guid) end it "creates 'cached_delete_by_client_guid_and_user_guid'" do expect(DeleteMethodClass).to respond_to(:cached_delete_by_client_guid_and_user_guid) end it "creates 'cached_delete_by_derp_and_user_guid_and_client_guid'" do expect(DeleteMethodClass).to respond_to(:cached_delete_by_derp_and_user_guid_and_client_guid) end it "creates 'cached_delete_by_client_guid_and_derp_and_user_guid'" do expect(DeleteMethodClass).to respond_to(:cached_delete_by_client_guid_and_derp_and_user_guid) end it "creates 'cached_delete_by_client_guid_and_user_guid_and_derp'" do expect(DeleteMethodClass).to respond_to(:cached_delete_by_client_guid_and_user_guid_and_derp) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_remote-cached-1.1.1 | spec/active_remote/cached_delete_methods_spec.rb |