Sha256: 71034e749afe88bf5592fb8f246d95ddc14b7c15bb515d1f0d0a0eb6d8f28434

Contents?: true

Size: 585 Bytes

Versions: 9

Compression:

Stored size: 585 Bytes

Contents

require 'spec_helper'

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

  describe 'public method tests' do
    
    # .br
    describe '.br' do
      let!(:size) { subject.contents.size }
      
      before { subject.br }
      
      it { expect(subject.contents.size).to eq size + 1 }
      it { expect(subject.contents.last).to be_a(Caracal::Core::Models::LineBreakModel) }
    end
    
  end
  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
caracal-0.1.8 spec/lib/caracal/core/line_breaks_spec.rb
caracal-0.1.7 spec/lib/caracal/core/line_breaks_spec.rb
caracal-0.1.6 spec/lib/caracal/core/line_breaks_spec.rb
caracal-0.1.5 spec/lib/caracal/core/line_breaks_spec.rb
caracal-0.1.4 spec/lib/caracal/core/line_breaks_spec.rb
caracal-0.1.3 spec/lib/caracal/core/line_breaks_spec.rb
caracal-0.1.2 spec/lib/caracal/core/line_breaks_spec.rb
caracal-0.1.1 spec/lib/caracal/core/line_breaks_spec.rb
caracal-0.1.0 spec/lib/caracal/core/line_breaks_spec.rb