title: RSpec, Factory Girl and Capybara: no items saved
body: <p>I have mountable Rails engine with RSpec:</p>
  
  <pre><code>RSpec.configure do |config|
    config.use_transactional_fixtures = false
  
    config.before(:suite) do
      DatabaseCleaner.clean_with(:truncation)
    end
  
    config.before(:each) do |example|
      DatabaseCleaner.strategy= example.metadata[:js] ? :truncation : :transaction
      DatabaseCleaner.start
    end
  
    config.after(:each) do
      DatabaseCleaner.clean
    end
  end
  </code></pre>
  
  <p>Simple factory:</p>
  
  <pre><code>FactoryGirl.define do
    factory :post, :class =&gt; MyEngine::Post do
      title 'title'
    end
  end
  </code></pre>
  
  <p>Capybara feature:</p>
  
  <pre><code>require 'spec_helper'
  
  describe 'Post', :type =&gt; :feature do
    let(:post) { FactoryGirl.create :post }
  
    it 'index action should have post' do
      visit posts_path
      expect(page).to have_text(post.title)
    end
  end
  </code></pre>
  
  <p>And Post model doesn't have any validations.</p>
  
  <p>But when i running tests it shows that there is no posts created.</p>
  
  <p>Also ActiveRecord logs:</p>
  
  <pre><code>INSERT INTO "my_engine_posts" ...
  RELEASE SAVEPOINT active_record_1
  rollback transaction
  </code></pre>