Sha256: 27348dfd07ce45638f9b6d99cc92d82a5e00772fef847782a0e16247dd6107b9

Contents?: true

Size: 1.26 KB

Versions: 3

Compression:

Stored size: 1.26 KB

Contents

# TODO: UPDATE THIS
# require File.dirname(__FILE__) + '/../spec_helper'
# 
# describe "Sshkey" do
#   describe "instances" do
#     before(:each) do
#       @key = Key.new
#       Key.stub!(:new).and_return @key
#       @key.stub!(:content).and_return "DIGITSOFTHEKEY"
#       @tc = TestBaseClass.new do
#         has_sshkey({:name => "~/.ssh/id_rsa"})
#       end
#       @dir = @tc.resource(:sshkey).first
#     end
#     it "have the name in the options" do
#       @dir.name.should == "~/.ssh/id_rsa"
#     end
#     it "should store the owner's name" do
#       @dir.enctype.should == "rsa"
#     end
#     describe "into PuppetResolver" do
#       before(:each) do
#         @compiled = PuppetResolver.new(@tc.to_properties_hash).compile
#       end
#       it "should set the filename to the name of the file" do
#         @compiled.should match(/sshkey \{ "~\/\.ssh\/id_rsa"/)
#       end
#       it "should say it's a sshkey in the ensure method" do
#         @compiled.should match(/ensure => "present"/)
#       end
#       it "have the mode set in the puppet output" do
#         @compiled.should match(/type => "rsa"/)
#       end
#       it "have the long string of digits key" do
#         @compiled.should match(/key => "DIGITSOFTHEKEY"/)
#       end
#     end
#   end
# end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
auser-poolparty-1.2.11 spec/poolparty/resources/sshkey_spec.rb
auser-poolparty-1.2.12 spec/poolparty/resources/sshkey_spec.rb
fairchild-poolparty-1.2.12 spec/poolparty/resources/sshkey_spec.rb