Sha256: 64eafc1677da6dcf34200fc8079fa0b0e4f0e051bc77ea1d3695fda9f8b6e2cc

Contents?: true

Size: 435 Bytes

Versions: 2

Compression:

Stored size: 435 Bytes

Contents

require 'test_plugin_helper'

module ForemanDigitalocean
  class DigitaloceanTest < ActiveSupport::TestCase
    should validate_presence_of(:api_key)
    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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_digitalocean-1.2.0 test/unit/foreman_digitalocean/digitalocean_test.rb
foreman_digitalocean-1.1.0 test/unit/foreman_digitalocean/digitalocean_test.rb