pan class="ruby-identifier">allow_any_instance_of</span>(<span class="ruby-constant">Trello</span><span 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-value">:client</span>).<span class="ruby-identifier">and_return</span>(<span class="ruby-identifier">client_double</span>)
  <span class="ruby-identifier">allow_any_instance_of</span>(<span class="ruby-constant">Trello</span><sp