# frozen_string_literal: true
require 'test_helper'

class MessageTest < ActiveSupport::TestCase
  test 'mailboxer messages are sent' do
    sender = FactoryGirl.create(:user)
    receiver = FactoryGirl.create(:user)
    receipt = sender.send_message(receiver, 'body', 'subject')
    assert_equal receipt.valid?, true
  end
end

# frozen_string_literal: true
require 'test_helper'

class MessageTest < ActiveSupport::TestCase
  test 'should mailboxer messages model work' do
    sender = FactoryGirl.create(:user)
    receiver = FactoryGirl.create(:user)
    receipt = sender.send_message(receiver, 'body', 'subject')
    assert_equal receipt.valid?, true
  end
end

--- 
+++ 
@@ -2,7 +2,7 @@
 require 'test_helper'
 
 class MessageTest < ActiveSupport::TestCase
-  test 'should mailboxer messages model work' do
+  test 'mailboxer messages are sent' do
     sender = FactoryGirl.create(:user)
     receiver = FactoryGirl.create(:user)
     receipt = sender.send_message(receiver, 'body', 'subject')
Reword test to drop should style
