title: How do I unit test the current_user RoR
body: <p>I have this method to check if the user is admin:</p>
  
  <pre><code>def admin?
    current_user.admin == true
  end
  </code></pre>
  
  <p>The unit test is:</p>
  
  <pre><code>require 'rails_helper'
  
  describe StubController do
    describe '.admin?' do
      it "should tell if the user is admin" do
        user = User.create!(email: "i@i.com", password:'123456', role: "admin", name: "Italo Fasanelli")
  
        result = user.admin?
  
        expect(result).to eq true
      end
    end
  end
  
  </code></pre>
  
  <p>The problem is, simplecov is telling me that this part <code>current_user.admin == true</code> is not covered.</p>
  
  <p>How do I test the current_user in this test?</p>