Revision 50c5bf86
Added by Marek Hulán over 6 years ago
test/unit/foreman_digitalocean/digitalocean_test.rb | ||
---|---|---|
teardown { Fog.unmock! }
|
||
|
||
test 'ssh key pair gets created after its saved' do
|
||
digitalocean = FactoryGirl.build(:digitalocean_cr)
|
||
digitalocean = FactoryBot.build(:digitalocean_cr)
|
||
digitalocean.expects(:setup_key_pair)
|
||
digitalocean.save
|
||
end
|
Also available in: Unified diff
Fixes #21533 - start using factory bot