1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-29 18:07:27 +01:00

Fix nonsensical spec.

This commit is contained in:
Joe Vennix 2014-11-26 13:57:44 -06:00
parent 2bd7a67413
commit 99b87c2e97
No known key found for this signature in database
GPG Key ID: 127B05FB3E85A2B0

View File

@ -99,9 +99,9 @@ describe Msf::Author do
end
end
context 'when given a name/email combination that is in KNOWN' do
context 'when given a name that is in KNOWN' do
let(:name) { described_class::KNOWN.keys.sample }
let(:email) { described_class::KNOWN[name] }
let(:email) { 'blargulsberg' }
describe '#name' do
it 'is set to the "name" parameter' do
@ -110,8 +110,8 @@ describe Msf::Author do
end
describe '#email' do
it 'is set to the email listed in KNOWN' do
expect(subject.email).to eq(described_class::KNOWN[name])
it 'is set to the "email" parameter' do
expect(subject.email).to eq(email)
end
end
end