summaryrefslogtreecommitdiffstats
path: root/spec/unit/provider/sshkey/parsed_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/provider/sshkey/parsed_spec.rb')
-rwxr-xr-xspec/unit/provider/sshkey/parsed_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/provider/sshkey/parsed_spec.rb b/spec/unit/provider/sshkey/parsed_spec.rb
index fc6c85dbd..4180ffbaf 100755
--- a/spec/unit/provider/sshkey/parsed_spec.rb
+++ b/spec/unit/provider/sshkey/parsed_spec.rb
@@ -11,27 +11,27 @@ describe provider_class do
@key = 'AAAAB3NzaC1yc2EAAAABIwAAAQEAzwHhxXvIrtfIwrudFqc8yQcIfMudrgpnuh1F3AV6d2BrLgu/yQE7W5UyJMUjfj427sQudRwKW45O0Jsnr33F4mUw+GIMlAAmp9g24/OcrTiB8ZUKIjoPy/cO4coxGi8/NECtRzpD/ZUPFh6OEpyOwJPMb7/EC2Az6Otw4StHdXUYw22zHazBcPFnv6zCgPx1hA7QlQDWTu4YcL0WmTYQCtMUb3FUqrcFtzGDD0ytosgwSd+JyN5vj5UwIABjnNOHPZ62EY1OFixnfqX/+dUwrFSs5tPgBF/KkC6R7tmbUfnBON6RrGEmu+ajOTOLy23qUZB4CQ53V7nyAWhzqSK+hw=='
end
- it "should parse the name from the first field" do
+ it "should parse the name from the first field" do
@provider_class.parse_line('test ssh-rsa '+@key)[:name].should == "test"
end
- it "should parse the first component of the first field as the name" do
+ it "should parse the first component of the first field as the name" do
@provider_class.parse_line('test,alias ssh-rsa '+@key)[:name].should == "test"
end
- it "should parse host_aliases from the remaining components of the first field" do
+ it "should parse host_aliases from the remaining components of the first field" do
@provider_class.parse_line('test,alias ssh-rsa '+@key)[:host_aliases].should == ["alias"]
end
- it "should parse multiple host_aliases" do
+ it "should parse multiple host_aliases" do
@provider_class.parse_line('test,alias1,alias2,alias3 ssh-rsa '+@key)[:host_aliases].should == ["alias1","alias2","alias3"]
end
- it "should not drop an empty host_alias" do
+ it "should not drop an empty host_alias" do
@provider_class.parse_line('test,alias, ssh-rsa '+@key)[:host_aliases].should == ["alias",""]
end
- it "should recognise when there are no host aliases" do
+ it "should recognise when there are no host aliases" do
@provider_class.parse_line('test ssh-rsa '+@key)[:host_aliases].should == []
end