Sha256: 7e839dbae3e3ec916f5e754f0167cfe5935ce8d05031a03676d9ed34206e5c81
Contents?: true
Size: 509 Bytes
Versions: 6
Compression:
Stored size: 509 Bytes
Contents
require 'spec_helper' require 'dnsimple/certificate' require 'dnsimple/commands/purchase_certificate' describe DNSimple::Commands::PurchaseCertificate do let(:out) { StringIO.new } let(:domain_name) { 'example.com' } context "with one argument" do it "purchases the certificate" do DNSimple::Certificate.expects(:purchase).with(domain_name, '').returns(stub("certificate", :fqdn => domain_name)) DNSimple::Commands::PurchaseCertificate.new(out).execute([domain_name]) end end end
Version data entries
6 entries across 6 versions & 1 rubygems