Sha256: 77cd1827efb3166349d9ffb019d52bf21d827652f59087e681a248b9923b553b
Contents?: true
Size: 596 Bytes
Versions: 23
Compression:
Stored size: 596 Bytes
Contents
require 'spec_helper' describe AdminIt::CollectionContext do let(:context_class) { described_class.create(:test, object_resource) } =begin subject { context_class.new(nil) } # class DSL methods it { expect(context_class.collection?).to be_true } it { expect(context_class.single?).to be_false } # instance methods it { expect(subject.collection?).to be_true } it { expect(subject.single?).to be_false } it 'has entities setter' do arr = [object_class.new, object_class.new] subject.entities = arr expect(subject.entities).to be_kind_of Enumerator end =end end
Version data entries
23 entries across 23 versions & 1 rubygems