Sha256: d0902f95992c84701e71ca8c5776253d9289af6a899f9d2a3d71eb550f512584

Contents?: true

Size: 604 Bytes

Versions: 37

Compression:

Stored size: 604 Bytes

Contents

require 'spec_helper'

describe Caracal::Core::Tables do
  subject { Caracal::Document.new }
  
  
  #-------------------------------------------------------------
  # Public Methods
  #-------------------------------------------------------------

  describe 'public method tests' do
    
    # .table
    describe '.table' do
      let!(:size) { subject.contents.size }
      
      before { subject.table [['Sample Text']] }
      
      it { expect(subject.contents.size).to eq size + 1 }
      it { expect(subject.contents.last).to be_a(Caracal::Core::Models::TableModel) }
    end
    
  end
  
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
caracal_the_curve-1.4.4 spec/lib/caracal/core/tables_spec.rb
caracal_the_curve-1.4.3 spec/lib/caracal/core/tables_spec.rb
caracal_the_curve-1.4.2 spec/lib/caracal/core/tables_spec.rb
caracal_the_curve-1.4.1 spec/lib/caracal/core/tables_spec.rb
caracal-1.4.1 spec/lib/caracal/core/tables_spec.rb
caracal-1.4.0 spec/lib/caracal/core/tables_spec.rb
caracal-1.3.0 spec/lib/caracal/core/tables_spec.rb
caracal-1.2.0 spec/lib/caracal/core/tables_spec.rb
caracal-1.1.2 spec/lib/caracal/core/tables_spec.rb
caracal-1.1.1 spec/lib/caracal/core/tables_spec.rb
caracal-1.1.0 spec/lib/caracal/core/tables_spec.rb
caracal-1.0.13 spec/lib/caracal/core/tables_spec.rb
caracal-1.0.12 spec/lib/caracal/core/tables_spec.rb
caracal-1.0.11 spec/lib/caracal/core/tables_spec.rb
caracal-1.0.10 spec/lib/caracal/core/tables_spec.rb
caracal-1.0.9 spec/lib/caracal/core/tables_spec.rb
caracal-1.0.8 spec/lib/caracal/core/tables_spec.rb
caracal-1.0.7 spec/lib/caracal/core/tables_spec.rb
caracal-1.0.6 spec/lib/caracal/core/tables_spec.rb
caracal-1.0.5 spec/lib/caracal/core/tables_spec.rb