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

Version Path
admin_it-1.3.8 spec/lib/context/collection_context_spec.rb
admin_it-1.3.7 spec/lib/context/collection_context_spec.rb
admin_it-1.3.6 spec/lib/context/collection_context_spec.rb
admin_it-1.3.5 spec/lib/context/collection_context_spec.rb
admin_it-1.3.4 spec/lib/context/collection_context_spec.rb
admin_it-1.3.3 spec/lib/context/collection_context_spec.rb
admin_it-1.3.2 spec/lib/context/collection_context_spec.rb
admin_it-1.3.1 spec/lib/context/collection_context_spec.rb
admin_it-1.3.0 spec/lib/context/collection_context_spec.rb
admin_it-1.2.8 spec/lib/context/collection_context_spec.rb
admin_it-1.2.7 spec/lib/context/collection_context_spec.rb
admin_it-1.2.6 spec/lib/context/collection_context_spec.rb
admin_it-1.2.5 spec/lib/context/collection_context_spec.rb
admin_it-1.2.4 spec/lib/context/collection_context_spec.rb
admin_it-1.2.3 spec/lib/context/collection_context_spec.rb
admin_it-1.2.2 spec/lib/context/collection_context_spec.rb
admin_it-1.2.1 spec/lib/context/collection_context_spec.rb
admin_it-1.2.0 spec/lib/context/collection_context_spec.rb
admin_it-1.1.0 spec/lib/context/collection_context_spec.rb
admin_it-1.0.11 spec/lib/context/collection_context_spec.rb