How to change Factory girl boolean attribute inside the test
<p>Here is my factory:</p>

<pre><code>factory :acceptance do
    favor
    user
    accepted false
  end
</code></pre>

<p>and here is my request spec:</p>

<pre><code>describe "to acceptances" do
    let (:favor) { create(:favor, user: user) }
    let (:acceptance) { create(:acceptance, user: user, favor: favor)}

    context "when has accepted acceptance" do
      it "shold not allow sending more acceptances" do
        acceptance.accepted = true
        expect(permission.allow?(:acceptances, :create, favor)).to be false
      end
</code></pre>

<p>The problem is with <code>acceptance.accepted = true</code>. As I figured out, this is not setting the <code>accepted</code> attribute to be <code>true</code>. How can I achive this?</p>

<p>Thanks a lot for your time!</p>