Sha256: 49c475a4de6a271220ff04239aa6a88aff866850e7bf5350040fd48c95017c24
Contents?: true
Size: 1.12 KB
Versions: 3
Compression:
Stored size: 1.12 KB
Contents
require 'spec_helper' describe Smartdc do describe ".configure" do let(:options) do { url: 'https://example.com', username: 'user', use_key: 'a1:b2:c3', rsa_path: '/ssh' } end before do Smartdc.configure do |config| config.url = options[:url] config.username = options[:username] config.use_key = options[:use_key] config.rsa_path = options[:rsa_path] end end it "gets of the config" do expect(Smartdc.config.url).to eq options[:url] expect(Smartdc.config.version).to eq '~7.0' expect(Smartdc.config.ssl_verify).to be_truthy expect(Smartdc.config.username).to eq options[:username] expect(Smartdc.config.use_key).to eq options[:use_key] expect(Smartdc.config.rsa_path).to eq options[:rsa_path] end end describe ".client" do it "returns a smartdc client" do expect(Smartdc.client).to be_a Smartdc::Client end end describe ".root" do it "returns a root path" do expect(Smartdc.root).to eq File.expand_path('..', File.dirname(__FILE__)) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
smartdc-2.0.2 | spec/smartdc_spec.rb |
smartdc-2.0.1 | spec/smartdc_spec.rb |
smartdc-2.0.0 | spec/smartdc_spec.rb |