Sha256: 97e6a2e65da5fded136efde080c69f5965d0c487a4afedf85160736ef4bb2467
Contents?: true
Size: 734 Bytes
Versions: 5
Compression:
Stored size: 734 Bytes
Contents
require 'spec_helper' require 'lumberg/whm' module Lumberg describe Whm::Base do before(:each) do @login = { :host => @whm_host, :hash => @whm_hash } @server = Whm::Server.new(@login.dup) @base = Whm::Base.new(:server => @server) end describe "#initialize" do it "creates a new instance of server" do expect { Whm::Base.new }.to raise_error(WhmArgumentError, /Missing required param/) end it "allows a server instance to be passed in" do @base.server.should be_a(Whm::Server) end it "allows a server hash to be passed in" do base = Whm::Base.new(:server => @login) base.server.should be_a(Whm::Server) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
lumberg-1.0.6 | spec/whm/base_spec.rb |
lumberg-1.0.3 | spec/whm/base_spec.rb |
lumberg-1.0.1 | spec/whm/base_spec.rb |
lumberg-1.0.0 | spec/whm/base_spec.rb |
lumberg-0.9.5 | spec/whm/base_spec.rb |