You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prompts live under app/prompts, very similar to app/views.
Would like to do RSpec something like this...
describe 'active_intelligence/chats.erb', type: :view do
before { prepend_view_path 'app/prompts' }
it('renders') { render }
end
``
1: Probably register `prompts/` as a view directory and omit it from the description above.
This seems like a clue... https://climber2002.github.io/blog/2015/04/06/digging-rails-how-rails-finds-your-templates-part-4/
2: Would be nice to register the `prompts/` directory to be able to omit the explicit `type: :view` metadata
"Automatically Adding Metadata" in https://rspec.info/features/6-0/rspec-rails/directory-structure/ seems like a clue.
The text was updated successfully, but these errors were encountered:
Prompts live under
app/prompts
, very similar toapp/views
.Would like to do RSpec something like this...
The text was updated successfully, but these errors were encountered: