an class="ruby-operator">::</span><span class="ruby-constant">FakeBoard</span>).<span class="ruby-identifier">to</span> <span class="ruby-identifier">receive</span>(<span class="ruby-identifier">id_field</span>).<span class="ruby-identifier">and_return</span>(<span class="ruby-identifier">id</span>)
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">association_restful_name</span>
    <span class="ruby-identifier">allow</span>(<span class="ruby-identifier">client_double</span>).<span class