I have a feature test that relies on a presenter object. I’ve build a method that populates the database so that the presenter has things to return, and locally, the db is populated and Capybara is able to load the page with the information it needs. Tests all pass beautifully.
Circle hates this.
I’ve SSH’d in and discovered that the reason the specs fail on Circle is because the controller is setting the instance variable it needs to create the page to nil, although all the information is in the test DB. I’ve tried stubbing this in all sorts of ways, and nothing I seem to do gets capybara on circle to be able to access the information sitting in the database.
I thought this might have something to do with containers, but even when I run the test in a single container I get the same error. Any suggestions as to HOW I can stub this instance variable on circle?