diff --git a/lib/kangaru/initialisers/rspec/request_helper.rb b/lib/kangaru/initialisers/rspec/request_helper.rb index fe8b45c..7559f88 100644 --- a/lib/kangaru/initialisers/rspec/request_helper.rb +++ b/lib/kangaru/initialisers/rspec/request_helper.rb @@ -24,6 +24,10 @@ def resolve(path, params:) Kangaru.application.router.resolve(request) end + def view_path(name) + Kangaru.application!.view_path(described_class.path, name.to_s) + end + matcher :render_template do |name| supports_block_expectations @@ -44,12 +48,6 @@ def resolve(path, params:) .once end end - - private - - def view_path(name) - Kangaru.application!.view_path(described_class.path, name.to_s) - end end if Object.const_defined?(:RSpec)