Sha256: 094d0c45ad4d73181d369ffab6ba18353e0e674e52237648e41b22350bfe5d6d
Contents?: true
Size: 744 Bytes
Versions: 3
Compression:
Stored size: 744 Bytes
Contents
require 'rails_helper' describe Pulitzer::CloneVersion do let(:version) { create(:version, :with_content_elements) } it 'Clones version content elements' do expect(version.content_elements.size).to eq 3 new_version = Pulitzer::CloneVersion.new(version).call expect(new_version.content_elements.size).to eq 3 end it 'Clones a valid content element' do new_version = Pulitzer::CloneVersion.new(version).call content_element = new_version.content_elements.first expect(content_element.title).to eq "Night's Watch" expect(content_element.label).to match "Slide 1 content element" expect(content_element.body).to match "I pledge my life" expect(content_element.type.to_s).to match "text" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pulitzer-0.2.2 | spec/interactions/clone_version_spec.rb |
pulitzer-0.2.1 | spec/interactions/clone_version_spec.rb |
pulitzer-0.2.0 | spec/interactions/clone_version_spec.rb |