Search code examples
rspec2rspec-rails

How does rspec-rails detects folders?


For example if I have ./views/*_spec then I can use render function. But what if I want to use render function from my ./integrations/*_spec ? How can I do this?


Solution

  • The solution is to include module from RSpec into describe block

    include RSpec::Rails::ViewExampleGroup