Delete references to deleted namespaces from specs

bug/bundler_fix
jvazquez-r7 2014-12-14 19:26:39 -06:00
parent 35742873c7
commit 8049d4024b
8 changed files with 23 additions and 23 deletions

View File

@ -3,7 +3,7 @@ require 'spec_helper'
require 'rex/proto/kerberos'
describe Rex::Proto::Kerberos::Model::Field::KdcRequestBody do
describe Rex::Proto::Kerberos::Model::KdcRequestBody do
subject(:kdc_request_body) do
described_class.new

View File

@ -3,7 +3,7 @@ require 'spec_helper'
require 'rex/proto/kerberos'
describe Rex::Proto::Kerberos::Model::Field::PreAuthData do
describe Rex::Proto::Kerberos::Model::PreAuthData do
subject(:pre_auth_data) do
described_class.new
@ -85,7 +85,7 @@ describe Rex::Proto::Kerberos::Model::Field::PreAuthData do
describe "#decode" do
context "when PAC-ENC-TIMESTAMP" do
it "returns the decoded Rex::Proto::Kerberos::Model::Field::PreAuthData" do
it "returns the decoded Rex::Proto::Kerberos::Model::PreAuthData" do
expect(pre_auth_data.decode(timestamp_sample)).to eq(pre_auth_data)
end
@ -101,7 +101,7 @@ describe Rex::Proto::Kerberos::Model::Field::PreAuthData do
end
context "when PA-PAC-REQUEST" do
it "returns the decoded Rex::Proto::Kerberos::Model::Field::PreAuthData" do
it "returns the decoded Rex::Proto::Kerberos::Model::PreAuthData" do
expect(pre_auth_data.decode(pac_sample)).to eq(pre_auth_data)
end
@ -119,7 +119,7 @@ describe Rex::Proto::Kerberos::Model::Field::PreAuthData do
describe "#encode" do
context "when PAC-ENC-TIMESTAMP" do
it "encodes Rex::Proto::Kerberos::Model::Field::PreAuthData correctly" do
it "encodes Rex::Proto::Kerberos::Model::PreAuthData correctly" do
pre_auth_data.decode(timestamp_sample)
expect(pre_auth_data.encode).to eq(timestamp_sample)
end
@ -127,7 +127,7 @@ describe Rex::Proto::Kerberos::Model::Field::PreAuthData do
end
context "when PA-PAC-REQUEST" do
it "encodes Rex::Proto::Kerberos::Model::Field::PreAuthData correctly" do
it "encodes Rex::Proto::Kerberos::Model::PreAuthData correctly" do
pre_auth_data.decode(pac_sample)
expect(pre_auth_data.encode).to eq(pac_sample)
end

View File

@ -3,7 +3,7 @@ require 'spec_helper'
require 'rex/proto/kerberos'
describe Rex::Proto::Kerberos::Model::Field::PreAuthEncTimeStamp do
describe Rex::Proto::Kerberos::Model::PreAuthEncTimeStamp do
subject(:pre_auth_enc_time_stamp) do
described_class.new
@ -51,7 +51,7 @@ describe Rex::Proto::Kerberos::Model::Field::PreAuthEncTimeStamp do
let(:enc_type) { 23 }
describe "#decode" do
it "returns the decoded Rex::Proto::Kerberos::Model::Field::PreAuthEncTimeStamp" do
it "returns the decoded Rex::Proto::Kerberos::Model::PreAuthEncTimeStamp" do
expect(pre_auth_enc_time_stamp.decode(time_stamp_raw)).to eq(pre_auth_enc_time_stamp)
end
@ -67,7 +67,7 @@ describe Rex::Proto::Kerberos::Model::Field::PreAuthEncTimeStamp do
end
describe "#encode" do
it "encodes Rex::Proto::Kerberos::Model::Field::PreAuthEncTimeStamp correctly" do
it "encodes Rex::Proto::Kerberos::Model::PreAuthEncTimeStamp correctly" do
pre_auth_enc_time_stamp.decode(time_stamp_raw)
expect(pre_auth_enc_time_stamp.encode).to eq(time_stamp_raw)
end
@ -82,7 +82,7 @@ describe Rex::Proto::Kerberos::Model::Field::PreAuthEncTimeStamp do
it "allows decryption" do
pre_auth_enc_time_stamp.decode(time_stamp_raw)
cipher = pre_auth_enc_time_stamp.encrypt(enc_type, password)
ed = Rex::Proto::Kerberos::Model::Type::EncryptedData.new(etype: enc_type, cipher: cipher)
ed = Rex::Proto::Kerberos::Model::EncryptedData.new(etype: enc_type, cipher: cipher)
plain = ed.decrypt(password, msg_type)
pre_auth_enc_time_stamp.decode(plain)
expect(pre_auth_enc_time_stamp.pa_time_stamp.to_s).to eq('2014-12-09 01:09:09 UTC')

View File

@ -3,7 +3,7 @@ require 'spec_helper'
require 'rex/proto/kerberos'
describe Rex::Proto::Kerberos::Model::Field::PreAuthPacRequest do
describe Rex::Proto::Kerberos::Model::PreAuthPacRequest do
subject(:pre_auth_pac_request) do
described_class.new
@ -33,7 +33,7 @@ describe Rex::Proto::Kerberos::Model::Field::PreAuthPacRequest do
end
describe "#decode" do
it "returns the decoded Rex::Proto::Kerberos::Model::Field::PreAuthData" do
it "returns the decoded Rex::Proto::Kerberos::Model::PreAuthData" do
expect(pre_auth_pac_request.decode(pac_sample)).to eq(pre_auth_pac_request)
end
@ -44,7 +44,7 @@ describe Rex::Proto::Kerberos::Model::Field::PreAuthPacRequest do
end
describe "#encode" do
it "encodes Rex::Proto::Kerberos::Model::Field::PreAuthPacRequest correctly" do
it "encodes Rex::Proto::Kerberos::Model::PreAuthPacRequest correctly" do
pre_auth_pac_request.decode(pac_sample)
expect(pre_auth_pac_request.encode).to eq(pac_sample)
end

View File

@ -3,7 +3,7 @@ require 'spec_helper'
require 'rex/proto/kerberos'
describe Rex::Proto::Kerberos::Model::Message::KdcRequest do
describe Rex::Proto::Kerberos::Model::KdcRequest do
subject(:kdc_request) do
described_class.new
@ -680,7 +680,7 @@ describe Rex::Proto::Kerberos::Model::Message::KdcRequest do
describe "#decode" do
context "when AS-REQ" do
it "returns the Rex::Proto::Kerberos::Model::Message::KdcRequest decoded" do
it "returns the Rex::Proto::Kerberos::Model::KdcRequest decoded" do
expect(kdc_request.decode(sample_as_req)).to eq(kdc_request)
end
@ -716,7 +716,7 @@ describe Rex::Proto::Kerberos::Model::Message::KdcRequest do
end
context "when TGS-REQ" do
it "returns the Rex::Proto::Kerberos::Model::Message::KdcRequest decoded" do
it "returns the Rex::Proto::Kerberos::Model::KdcRequest decoded" do
expect(kdc_request.decode(sample_tgs_req)).to eq(kdc_request)
end

View File

@ -3,7 +3,7 @@ require 'spec_helper'
require 'rex/proto/kerberos'
describe Rex::Proto::Kerberos::Model::Message::KrbError do
describe Rex::Proto::Kerberos::Model::KrbError do
subject(:krb_error) do
described_class.new
@ -298,7 +298,7 @@ describe Rex::Proto::Kerberos::Model::Message::KrbError do
describe "#decode" do
context "when generic error" do
it "returns the Rex::Proto::Kerberos::Model::Message::KrbError decoded" do
it "returns the Rex::Proto::Kerberos::Model::KrbError decoded" do
expect(krb_error.decode(generic_error)).to eq(krb_error)
end
@ -334,7 +334,7 @@ describe Rex::Proto::Kerberos::Model::Message::KrbError do
end
context "when pre auth failed error" do
it "returns the Rex::Proto::Kerberos::Model::Message::KrbError decoded" do
it "returns the Rex::Proto::Kerberos::Model::KrbError decoded" do
expect(krb_error.decode(pre_auth_failed)).to eq(krb_error)
end

View File

@ -3,7 +3,7 @@ require 'spec_helper'
require 'rex/proto/kerberos'
describe Rex::Proto::Kerberos::Model::Type::EncryptedData do
describe Rex::Proto::Kerberos::Model::EncryptedData do
subject(:encrypted_data) do
described_class.new
@ -149,7 +149,7 @@ describe Rex::Proto::Kerberos::Model::Type::EncryptedData do
describe "#encode" do
context "when EncryptedData without kvno" do
it "encodes Rex::Proto::Kerberos::Model::Type::EncryptedData correctly" do
it "encodes Rex::Proto::Kerberos::Model::EncryptedData correctly" do
encrypted_data.decode(sample_enc_data)
expect(sample_enc_data.encode).to eq(sample_enc_data)
end
@ -168,7 +168,7 @@ describe Rex::Proto::Kerberos::Model::Type::EncryptedData do
it "returns a valid object" do
encrypted_data.decode(sample_known_enc_data)
plain = encrypted_data.decrypt(known_password, msg_type)
expect(Rex::Proto::Kerberos::Model::Field::PreAuthEncTimeStamp.decode(plain)).to be_a(Rex::Proto::Kerberos::Model::Field::PreAuthEncTimeStamp)
expect(Rex::Proto::Kerberos::Model::PreAuthEncTimeStamp.decode(plain)).to be_a(Rex::Proto::Kerberos::Model::Field::PreAuthEncTimeStamp)
end
end

View File

@ -3,7 +3,7 @@ require 'spec_helper'
require 'rex/proto/kerberos'
describe Rex::Proto::Kerberos::Model::Type::PrincipalName do
describe Rex::Proto::Kerberos::Model::PrincipalName do
subject(:principal_name) do
described_class.new