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