Sha256: b56856a373b0635372e22b5ddadc5f6992334141cd218d09767a60339ffafe7a

Contents?: true

Size: 575 Bytes

Versions: 34

Compression:

Stored size: 575 Bytes

Contents

require 'core/spec_helper'

class ZendeskAPI::DataNamespaceTest; end

describe ZendeskAPI::DataNamespace do
  describe "descendants" do
    let(:target_klass) { ZendeskAPI::DataNamespaceTest }
    it "adds class to its descendants list when included" do
      expect(ZendeskAPI::DataNamespace.descendants).not_to include(target_klass)
      expect { target_klass.send(:include, ZendeskAPI::DataNamespace) }.
        to change { ZendeskAPI::DataNamespace.descendants.count }.by(1)
      expect(ZendeskAPI::DataNamespace.descendants).to include(target_klass)
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
zendesk_api-1.13.1 spec/core/data_namespace_spec.rb
zendesk_api-1.12.1 spec/core/data_namespace_spec.rb
zendesk_api-1.12.0 spec/core/data_namespace_spec.rb
zendesk_api-1.11.7 spec/core/data_namespace_spec.rb
zendesk_api-1.11.6 spec/core/data_namespace_spec.rb
zendesk_api-1.11.5 spec/core/data_namespace_spec.rb
zendesk_api-1.11.4 spec/core/data_namespace_spec.rb
zendesk_api-1.11.3 spec/core/data_namespace_spec.rb
zendesk_api-1.11.2 spec/core/data_namespace_spec.rb
zendesk_api-1.11.1 spec/core/data_namespace_spec.rb
zendesk_api-1.11.0 spec/core/data_namespace_spec.rb
zendesk_api-1.10.0 spec/core/data_namespace_spec.rb
zendesk_api-1.9.6 spec/core/data_namespace_spec.rb
zendesk_api-1.9.5 spec/core/data_namespace_spec.rb
zendesk_api-1.9.4 spec/core/data_namespace_spec.rb
zendesk_api-1.9.3 spec/core/data_namespace_spec.rb
zendesk_api-1.9.2 spec/core/data_namespace_spec.rb
zendesk_api-1.9.1 spec/core/data_namespace_spec.rb
zendesk_api-1.9.0 spec/core/data_namespace_spec.rb
zendesk_api-1.8.0 spec/core/data_namespace_spec.rb