Sha256: 0a1e508f2bcfbdc633e6e72cd7dfa590abc1c4bbf5bd8b9950e728ea365806b1

Contents?: true

Size: 945 Bytes

Versions: 29

Compression:

Stored size: 945 Bytes

Contents

Shindo.tests("Fog::Compute[:digitalocean] | ssh_key model", ['digitalocean', 'compute']) do

  service = Fog::Compute[:digitalocean]

  tests('The ssh_key model should') do

    test('#save') do
      @key = service.ssh_keys.create :name => 'fookey',
                                     :ssh_pub_key => 'fookey'
      @key.is_a? Fog::Compute::DigitalOcean::SshKey
    end

    tests('have the action') do
      test('reload') { @key.respond_to? 'reload' }
      %w{
        save
        destroy
      }.each do |action|
        test(action) { @key.respond_to? action }
      end
    end

    tests('have attributes') do
      attributes = [
        :id,
        :name,
        :ssh_pub_key
      ]

      tests("The key model should respond to") do
        attributes.each do |attribute|
          test("#{attribute}") { @key.respond_to? attribute }
        end
      end
    end

    test('#destroy') do
      @key.destroy
    end

  end

end

Version data entries

29 entries across 29 versions & 4 rubygems

Version Path
fog-1.37.0 tests/digitalocean/models/compute/ssh_key_tests.rb
fog-1.36.0 tests/digitalocean/models/compute/ssh_key_tests.rb
fog-1.35.0 tests/digitalocean/models/compute/ssh_key_tests.rb
fog-2.0.0.pre.0 tests/digitalocean/models/compute/ssh_key_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/digitalocean/models/compute/ssh_key_tests.rb
fog-1.34.0 tests/digitalocean/models/compute/ssh_key_tests.rb
fog-1.33.0 tests/digitalocean/models/compute/ssh_key_tests.rb
fog-1.32.0 tests/digitalocean/models/compute/ssh_key_tests.rb
fog-1.31.0 tests/digitalocean/models/compute/ssh_key_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/digitalocean/models/compute/ssh_key_tests.rb
fog-1.30.0 tests/digitalocean/models/compute/ssh_key_tests.rb
fog-1.29.0 tests/digitalocean/models/compute/ssh_key_tests.rb
fog-1.28.0 tests/digitalocean/models/compute/ssh_key_tests.rb
fog-1.27.0 tests/digitalocean/models/compute/ssh_key_tests.rb
fog-1.26.0 tests/digitalocean/models/compute/ssh_key_tests.rb
fog-1.25.0 tests/digitalocean/models/compute/ssh_key_tests.rb
nsidc-fog-1.24.1 tests/digitalocean/models/compute/ssh_key_tests.rb
fog-1.24.0 tests/digitalocean/models/compute/ssh_key_tests.rb
ns-fog-1.22.11 tests/digitalocean/models/compute/ssh_key_tests.rb
ns-fog-1.22.10 tests/digitalocean/models/compute/ssh_key_tests.rb