Sha256: 8dff596a2f1ae1fe0d8b492fb5c82f84121049ae9a51d86e22ed26cc8b31dfbf

Contents?: true

Size: 634 Bytes

Versions: 23

Compression:

Stored size: 634 Bytes

Contents

require 'spec_helper'

describe AdminIt::SingleContext do
  let(:context_class) { described_class.create(:test, object_resource) }
=begin
  describe 'DSL methods' do
    subject { context_class }

    it { expect(subject.collection?).to be_false }
    it { expect(subject.single?).to be_true }
  end

  describe 'instance methods' do
    subject { context_class.new }

    it 'sets empty emtity for nil values' do
      subject.entity = nil
      expect(subject.values).to be_kind_of Hash
    end

    it 'sets entity Object' do
      subject.entity = Object.new
      expect(subject.values).to be_kind_of Hash
    end
  end
=end
end

Version data entries

23 entries across 23 versions & 1 rubygems

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