Sha256: 5bbb028e5e7a325cd5516871cdf2f9b9f0afaf65a5e51e48e39869f67862dcd6
Contents?: true
Size: 732 Bytes
Versions: 45
Compression:
Stored size: 732 Bytes
Contents
require "spec_helper" describe Brightbox::Server do before do config_from_contents(API_CLIENT_CONFIG_CONTENTS) end let(:image_id) { "img-12345" } describe "#find(:all)" do context "when a server exists", vcr: true do before do options = { :image_id => image_id } @server = Brightbox::Server.create(options) end it "should print server list" do @servers = Brightbox::Server.find(:all) output = FauxIO.new do Brightbox.render_table(@servers, {}) end expect(output.stdout).to include(@server.id) end after do @server.fog_model.wait_for { ready? } @server.destroy end end end end
Version data entries
45 entries across 45 versions & 1 rubygems