Skip to content

Commit 99b87c2

Browse files
committed
Fix nonsensical spec.
1 parent 2bd7a67 commit 99b87c2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/lib/msf/core/author_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@
9999
end
100100
end
101101

102-
context 'when given a name/email combination that is in KNOWN' do
102+
context 'when given a name that is in KNOWN' do
103103
let(:name) { described_class::KNOWN.keys.sample }
104-
let(:email) { described_class::KNOWN[name] }
104+
let(:email) { 'blargulsberg' }
105105

106106
describe '#name' do
107107
it 'is set to the "name" parameter' do
@@ -110,8 +110,8 @@
110110
end
111111

112112
describe '#email' do
113-
it 'is set to the email listed in KNOWN' do
114-
expect(subject.email).to eq(described_class::KNOWN[name])
113+
it 'is set to the "email" parameter' do
114+
expect(subject.email).to eq(email)
115115
end
116116
end
117117
end

0 commit comments

Comments
 (0)