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.6.0 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.5.9 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.5.8 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.5.7 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.5.6 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.5.5 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.5.4 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.5.3 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.5.2 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.5.1 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.5.0 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.4.9 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.4.8 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.4.7 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.4.6 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.4.5 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.4.4 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.4.3 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.4.2 spec/models/auth/chief_model_spec.rb
wordjelly-auth-1.4.0 spec/models/auth/chief_model_spec.rb