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