spec/whm/cert_spec.rb in lumberg-2.0.0.pre9 vs spec/whm/cert_spec.rb in lumberg-2.0.0.pre12
- old
+ new
@@ -93,7 +93,18 @@
result = @cert.installssl(domain: 'check.com', user: "nobody", cert: SELF_CERT, key: SELF_KEY, ip: '192.1.2.3')
result[:success].should be_true
result[:message].should match(/Certificate successfully installed/)
end
end
+
+ describe "#fetch_ssl_vhosts" do
+ use_vcr_cassette "whm/cert/fetch_ssl_vhosts"
+
+ it "returns SSL vhosts" do
+ result = @cert.fetch_ssl_vhosts
+
+ result[:params][:vhosts].first[:user].should eq "blah"
+ result[:params][:vhosts].first[:domains].should include "example.com"
+ end
+ end
end
end