Sha256: 98de752d63d136b102cbcec216cbe1f679894fa2b274525f7a8614f1b2e69eab

Contents?: true

Size: 501 Bytes

Versions: 11

Compression:

Stored size: 501 Bytes

Contents

require 'test_google_helper'

module GoogleExtensions
  class AttachedDiskTest < GoogleTestCase
    describe 'insert_attrs' do
      it 'with source image' do
        disk = Google::Cloud::Compute::V1::AttachedDisk.new(source: 'source-image')
        assert_equal 'source-image', disk.insert_attrs[:source_image]
      end

      it 'without source image' do
        disk = Google::Cloud::Compute::V1::AttachedDisk.new
        assert_empty disk.insert_attrs[:source_image]
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
foreman_google-3.0.2 test/unit/google_extensions/attached_disk_test.rb
foreman_google-3.0.1 test/unit/google_extensions/attached_disk_test.rb
foreman_google-3.0.0 test/unit/google_extensions/attached_disk_test.rb
foreman_google-2.0.1 test/unit/google_extensions/attached_disk_test.rb
foreman_google-2.0.0 test/unit/google_extensions/attached_disk_test.rb
foreman_google-1.0.4 test/unit/google_extensions/attached_disk_test.rb
foreman_google-1.0.3 test/unit/google_extensions/attached_disk_test.rb
foreman_google-1.0.2 test/unit/google_extensions/attached_disk_test.rb
foreman_google-1.0.1 test/unit/google_extensions/attached_disk_test.rb
foreman_google-1.0.0 test/unit/google_extensions/attached_disk_test.rb
foreman_google-0.0.2 test/unit/google_extensions/attached_disk_test.rb