Update rspec

bug/bundler_fix
wchen-r7 2017-03-08 13:39:24 -06:00
parent d6bc56d665
commit 2a5815749c
1 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ RSpec.describe Rex::Proto::Mms::Model::Message do
let(:filecontent) { 'file content' } let(:filecontent) { 'file content' }
let(:from) { 'sender@example.com' } let(:from) { 'sender@example.com' }
let(:to) { 'receiver@example.com' } let(:to) { 'receiver@example.com' }
let(:subject) { 'subject' } let(:mms_subject) { 'subject' }
before(:each) do before(:each) do
allow(File).to receive(:read).and_return(filecontent) allow(File).to receive(:read).and_return(filecontent)
@ -19,7 +19,7 @@ RSpec.describe Rex::Proto::Mms::Model::Message do
described_class.new( described_class.new(
from: from, from: from,
to: to, to: to,
subject: subject, subject: mms_subject,
message: message, message: message,
content_type: content_type, content_type: content_type,
attachment_path: attachment attachment_path: attachment
@ -48,7 +48,7 @@ RSpec.describe Rex::Proto::Mms::Model::Message do
end end
it 'sets subject' do it 'sets subject' do
expect(subject.to).to receive(subject) expect(subject.subject).to eq(mms_subject)
end end
end end