Last active
          June 30, 2022 23:27 
        
      - 
      
- 
        Save bryan-liff/c251448becd90aef5c79fe9825a20c48 to your computer and use it in GitHub Desktop. 
    BDD-42 Spec implementation: User object sends UserReportMailer
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # spec/models/user_spec.rb | |
| describe User do | |
| describe 'methods' do | |
| describe 'instance' do | |
| describe '#send_mailer_user_report' do | |
| it 'sends a UserReportMailer for itself' do | |
| expect(any_instance_of(UserReportMailer)).to_receive(:send).once | |
| user = FactoryBot.build(:user) | |
| user.send_mailer_user_report | |
| end | |
| end | |
| end | |
| end | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment