Sha256: 84acaf9bf648e5b6e67df2ca356af88b6d09a0f6dee72897f8f6276f44d05d83
Contents?: true
Size: 548 Bytes
Versions: 55
Compression:
Stored size: 548 Bytes
Contents
require 'kontena/cli/registry/create_command' describe Kontena::Cli::Registry::CreateCommand do include ClientHelpers include OutputHelpers context "with an existing legacy registry service" do let :service do { 'name' => 'registry', } end before do allow(client).to receive(:get).with('services/test-grid/registry').and_return(service) end it "does not create the registry" do expect{subject.run []}.to exit_with_error.and output(/Registry already exists/).to_stderr end end end
Version data entries
55 entries across 55 versions & 1 rubygems