Retab unattended_spec to avoid conflicts

bug/bundler_fix
Tabassassin 2013-09-27 13:44:33 -05:00 committed by Tod Beardsley
parent 5bab85fcda
commit 120cca8bb3
1 changed files with 26 additions and 26 deletions

View File

@ -15,36 +15,36 @@ comb = REXML::Document.new('<unattend xmlns="urn:schemas-microsoft-com:unattend"
describe Rex::Parser::Unattend do describe Rex::Parser::Unattend do
context "#parse" do context "#parse" do
it "returns passwords for b64" do it "returns passwords for b64" do
results = described_class.parse(b64) results = described_class.parse(b64)
results.length.should eq(2) results.length.should eq(2)
results[0]['password'].should eq(Rex::Text.to_unicode('Temp123')) results[0]['password'].should eq(Rex::Text.to_unicode('Temp123'))
end end
it "returns passwords for domain join" do it "returns passwords for domain join" do
results = described_class.parse(dj) results = described_class.parse(dj)
results.length.should eq(1) results.length.should eq(1)
results[0]['password'].should eq('Password1') results[0]['password'].should eq('Password1')
end end
pos_xmls = [dj, b64, comb, std, lng] pos_xmls = [dj, b64, comb, std, lng]
neg_xmls = [unsecure] neg_xmls = [unsecure]
it "returns results for all positive examples" do it "returns results for all positive examples" do
pos_xmls.each do |xml| pos_xmls.each do |xml|
results = described_class.parse(xml) results = described_class.parse(xml)
results.should_not be_empty results.should_not be_empty
end end
end end
it "returns no results for negative examples" do it "returns no results for negative examples" do
neg_xmls.each do |xml| neg_xmls.each do |xml|
results = described_class.parse(xml) results = described_class.parse(xml)
results.should be_empty results.should be_empty
end end
end end
end end
end end