spec/unit/ridley/client_spec.rb in ridley-1.7.1 vs spec/unit/ridley/client_spec.rb in ridley-2.0.0

- old
+ new

@@ -4,23 +4,19 @@ let(:server_url) { "https://api.opscode.com" } let(:client_name) { "reset" } let(:client_key) { fixtures_path.join("reset.pem").to_s } let(:organization) { "vialstudios" } let(:encrypted_data_bag_secret_path) { fixtures_path.join("reset.pem").to_s } - let(:ssh) { {user: "reset", password: "password1", port: "222"} } - let(:winrm) { {user: "reset", password: "password2", port: "5986"} } let(:chef_version) { "10.24.0-01" } let(:config) do { server_url: server_url, client_name: client_name, client_key: client_key, organization: organization, encrypted_data_bag_secret_path: encrypted_data_bag_secret_path, - ssh: ssh, - winrm: winrm, chef_version: chef_version } end describe "ClassMethods" do @@ -103,17 +99,9 @@ it "accepts a client key as a string" do key = File.read(fixtures_path.join("reset.pem").to_s) config[:client_key] = key.dup described_class.new(config).client_key.should == key - end - - it "assigns a 'ssh' attribute from the given 'ssh' option" do - described_class.new(config).ssh.should eql({user: "reset", password: "password1", port: "222"}) - end - - it "assigns a 'winrm' attribute from the given 'winrm' option" do - described_class.new(config).winrm.should eql({user: "reset", password: "password2", port: "5986"}) end it "assigns a 'chef_version' attribute from the given 'chef_version' option" do described_class.new(config).chef_version.should eql("10.24.0-01") end