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