Sha256: a8dd87fcee36f620ffea8b6ca4735b0517d7976c89b459c232482a699f773b71

Contents?: true

Size: 537 Bytes

Versions: 1

Compression:

Stored size: 537 Bytes

Contents

require 'test_plugin_helper'

class ForemanDigitalocean::DigitaloceanTest < ActiveSupport::TestCase
  should validate_presence_of(:api_key)
  should allow_mass_assignment_of(:region)
  should allow_mass_assignment_of(:api_key)
  should delegate_method(:flavors).to(:client)
  should have_one(:key_pair)

  setup { Fog.mock! }
  teardown { Fog.unmock! }

  test 'ssh key pair gets created after its saved' do
    digitalocean = FactoryGirl.build(:digitalocean_cr)
    digitalocean.expects(:setup_key_pair)
    digitalocean.save
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman_digitalocean-1.0.0 test/unit/foreman_digitalocean/digitalocean_test.rb