Sha256: 8207a0f07a13055beac9546fb76995234d3aa3c6b4977866be1d5503bbef8f17

Contents?: true

Size: 642 Bytes

Versions: 5

Compression:

Stored size: 642 Bytes

Contents

require 'spec_helper'

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

  describe 'public method tests' do
    
    # .page
    describe '.page_flip' do
      let!(:size) { subject.contents.size }
      
      before do
        subject.page_flip do |x|
          x.p
        end
      end
      
      it { expect(subject.contents.size).to eq size + 1 }
      it { expect(subject.contents.last).to be_a(Caracal::Core::Models::PageFlipModel) }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
caracal_the_curve-1.4.6 spec/lib/caracal/core/page_flip_spec.rb
caracal_the_curve-1.4.5 spec/lib/caracal/core/page_flip_spec.rb
caracal_the_curve-1.4.4 spec/lib/caracal/core/page_flip_spec.rb
caracal_the_curve-1.4.3 spec/lib/caracal/core/page_flip_spec.rb
caracal_the_curve-1.4.2 spec/lib/caracal/core/page_flip_spec.rb