title: Rails Engines and jbuilder view tests
body: <p>I am building a rails engine that handles a search functionality in my app. </p>
  
  <p>Originally, it was built as a controller concern in an existing app with an associated <a href="http://api.rubyonrails.org/classes/ActionDispatch/Routing/Mapper/Concerns.html" rel="nofollow">routing concern</a> and json views. This has now been extracted into an engine without ActiveRecord which I hope to able to mount on other apps.</p>
  
  <p>Whether the above is any use to the question I am not sure.</p>
  
  <p>I would like to test my json files (constructed via jbuilder) but am having trouble marrying the specs with the app.</p>
  
  <p>I can't seem to get past this error </p>
  
  <pre><code>  1) views/api/search/feed.json should render without error
       Failure/Error: render
       ActionView::MissingTemplate:
         Missing template views/api/search/feed with {:locale=&gt;[:en], :formats=&gt;[:html, :text, :js, :css, :ics, :csv, :vcf, :png, :jpeg, :gif, :bmp, :tiff, :mpeg, :xml, :rss, :atom, :yaml, :multipart_form, :url_encoded_form, :json, :pdf, :zip], :variants=&gt;[], :handlers=&gt;["json"]}. Searched in:
           * "/Users/***/projects/morse_searchable/spec/dummy/app/views"
           * "/Users/***/projects/morse_searchable/app/views"
  </code></pre>
  
  <p>I feel it could be a number of issues, which one I am not sure.</p>
  
  <ul>
  <li>Am I testing the engine in the right place? </li>
  <li>In the process of removing Active Record have I messed something up?</li>
  <li>Is this how we normally test json files, let alone json files in engines?</li>
  </ul>
  
  <p>For extra info I've added a <a href="http://pastebin.com/tky7hLQt" rel="nofollow">pastebin link to the current folder structure</a> should that shed any light on the issue.</p>
  
  <p>Any guidance is greatly appreciated.</p>
  
  <p>(using rails 4 and rspec)</p>