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

Version Path
wordjelly-auth-1.3.9 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.3.8 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.3.7 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.3.6 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.3.5 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.3.3 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.3.2 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.3.1 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.3.0 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.2.9 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.2.8 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.2.6 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.2.5 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.2.4 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.2.3 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.2.2 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.2.1 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.2.0 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.1.9 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.1.8 spec/models/auth/chief_model_spec.rb