Sha256: 03ac704b045ab2117d90b6f814833eb169eded6ee1cf9e2492d3ed73a12296b2
Contents?: true
Size: 762 Bytes
Versions: 10
Compression:
Stored size: 762 Bytes
Contents
require 'spec_helper' require 'dnsimple/certificate' require 'dnsimple/commands/certificate_purchase' describe DNSimple::Commands::CertificatePurchase do let(:domain_name) { 'example.com' } let(:domain) { stub('domain') } let(:contact) { stub('contact') } context "with one argument" do before :each do DNSimple::Domain.stubs(:find).returns(domain) DNSimple::Contact.stubs(:find).returns(contact) end it "purchases the certificate" do DNSimple::Certificate.expects(:purchase). with(domain, 'certname', contact). returns(stub("certificate", :fqdn => domain_name)) DNSimple::Commands::CertificatePurchase.new. execute([domain_name, 'certname', stub('contact id')]) end end end
Version data entries
10 entries across 10 versions & 1 rubygems