Sha256: 2f1396a468c947f0b36f04a9f2669047fc89c9c8e3c01b66517d5d539fc2b2e4
Contents?: true
Size: 606 Bytes
Versions: 5
Compression:
Stored size: 606 Bytes
Contents
require 'spec_helper' describe Caracal::Core::Fields do subject { Caracal::Document.new } #------------------------------------------------------------- # Public Methods #------------------------------------------------------------- describe 'public method tests' do # .table describe '.field' do let!(:size) { subject.contents.size } before { subject.field :table_of_contents } it { expect(subject.contents.size).to eq size + 1 } it { expect(subject.contents.last).to be_a(Caracal::Core::Models::FieldModel) } end end end
Version data entries
5 entries across 5 versions & 1 rubygems