spec/interactions/clone_version_spec.rb in pulitzer-0.15.0 vs spec/interactions/clone_version_spec.rb in pulitzer-0.15.1
- old
+ new
@@ -1,9 +1,10 @@
require 'rails_helper'
describe Pulitzer::CloneVersion do
let(:post_type) { Pulitzer::PostType.named('Welcome')}
- let(:post) { post_type.posts.first }
+ let(:post_type_version) {post_type.published_type_version}
+ let(:post) { post_type_version.posts.first }
let(:version) { post.preview_version }
it 'Clones version content elements' do
expect(version.content_elements.size).to eq 11
version.post.create_processing_version