title: How to test if other models were created correctly
body: <p>I have a Account.create! method that creates multiple other models.</p>
  
  <p>In my RSpec test how can I test if the other models were created correctly?</p>
  
  <pre><code>it "should create an account" do
    params = ....
    Account.create!(params)
    expect(account.valid?).to eq(true)
  end
  </code></pre>
  
  <p>My Account.create! method looks like:</p>
  
  <pre><code>def self.create!(params)
     account = Account.new(params)
     user = ...
     user.save!
     location = ...
     location.save!
  
     account
  end
  </code></pre>