title: Rspec - Instance variable assigned with 'let' overridden in rails view
body: <p>I'm testing a page that loads a random sample of 'members' to display. The rails controller sets them as <code>@members</code>. In my test I'm trying to replace this variable with an array of a single hard-coded member hash:</p>
  
  <pre><code>require "spec_helper"
  describe "the page", type: :feature, js: true do
  
    let!(:members) do
      [{ name: "Super Grover", title: "Hero" }]
    end
  
    before do
      visit "/the_page"
      p members
      expect(page).to have_content "some content"
    end
  
    it ... etc...
  end
  </code></pre>
  
  <p>This is a feature test, so Capybara opens up the page and gets clicky. I've added a print in the test (<code>p members</code>) and one in the rails view (<code>p @members</code>). The rails view shows the value created in the controller (array of random sample), but the test shows the value I've assigned with <code>let</code>.</p>
  
  <p>My goal is to have the mocked values appear on the page, not what my controller actually sends my view. Am I thinking about this the wrong way?</p>