Skip to content

Commit

Permalink
Make RequestHelper#view_path public
Browse files Browse the repository at this point in the history
  • Loading branch information
apexatoll committed Nov 8, 2023
1 parent 13a9a72 commit 9ee1531
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/kangaru/initialisers/rspec/request_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand Down

0 comments on commit 9ee1531

Please sign in to comment.