Sha256: 5e7a685d34f892598178b9880c687b8d2996f0c5f69ff9fa705e28510c18748a

Contents?: true

Size: 715 Bytes

Versions: 17

Compression:

Stored size: 715 Bytes

Contents

require 'spec_helper'

describe Caracal::Core::IFrames do
  subject { Caracal::Document.new }


  #-------------------------------------------------------------
  # Public Methods
  #-------------------------------------------------------------

  describe 'public method tests' do

    # .img
    describe '.iframes' do
      let!(:size) { subject.contents.size }

      before do
        path = File.join(Caracal.root, 'spec', 'support', '_fixtures', 'snippet.docx')
        data = File.open(path).read
        subject.iframe data: data
      end

      it { expect(subject.contents.size).to eq size + 1 }
      it { expect(subject.contents.last).to be_a(Caracal::Core::Models::IFrameModel) }
    end

  end

end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
caracal_the_curve-1.4.6 spec/lib/caracal/core/iframes_spec.rb
caracal_the_curve-1.4.5 spec/lib/caracal/core/iframes_spec.rb
caracal_the_curve-1.4.4 spec/lib/caracal/core/iframes_spec.rb
caracal_the_curve-1.4.3 spec/lib/caracal/core/iframes_spec.rb
caracal_the_curve-1.4.2 spec/lib/caracal/core/iframes_spec.rb
caracal_the_curve-1.4.1 spec/lib/caracal/core/iframes_spec.rb
caracal-1.4.1 spec/lib/caracal/core/iframes_spec.rb
caracal-1.4.0 spec/lib/caracal/core/iframes_spec.rb
caracal-1.3.0 spec/lib/caracal/core/iframes_spec.rb
caracal-1.2.0 spec/lib/caracal/core/iframes_spec.rb
caracal-1.1.2 spec/lib/caracal/core/iframes_spec.rb
caracal-1.1.1 spec/lib/caracal/core/iframes_spec.rb
caracal-1.1.0 spec/lib/caracal/core/iframes_spec.rb
caracal-1.0.13 spec/lib/caracal/core/iframes_spec.rb
caracal-1.0.12 spec/lib/caracal/core/iframes_spec.rb
caracal-1.0.11 spec/lib/caracal/core/iframes_spec.rb
caracal-1.0.10 spec/lib/caracal/core/iframes_spec.rb