Sha256: e784540d533d03ae6f96acffd711602fd5528c7ce34709de9663c30315229d9c
Contents?: true
Size: 589 Bytes
Versions: 55
Compression:
Stored size: 589 Bytes
Contents
require 'rails_helper' RSpec.describe Auth::Workflow::Assembly, type: :model do context "-- cloning --", :clone => true do it "clones recursively" do assembly = Auth::Workflow::Assembly.prepare_nested cloned_assembly = assembly.clone expect(assembly.stages.first.id).not_to eq(cloned_assembly.stages.first.id) expect(assembly.stages.first.sops.first.id).not_to eq(cloned_assembly.stages.first.sops.first.id) expect(assembly.stages.first.sops.first.steps.first.id).not_to eq(cloned_assembly.stages.first.sops.first.steps.first.id) end end end
Version data entries
55 entries across 55 versions & 1 rubygems