Skip to content

Commit

Permalink
Test additional code paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcwhite committed May 2, 2024
1 parent 65bca9e commit 8bc7224
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bridgetown-core/test/ssr/server/routes/hello.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Routes::Hello < Bridgetown::Rack::Routes
priority :lowest

route do |r|
saved_value = bridgetown_site.data.save_value
saved_value = site.data.save_value

# route: GET /hello/:name
r.get "hello", String do |name|
Expand Down
2 changes: 1 addition & 1 deletion bridgetown-core/test/ssr/server/routes/render_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Routes::RenderResource < Bridgetown::Rack::Routes
# route: GET /render_resource
r.get "render_resource" do
# Roda should know how to autorender the resource
bridgetown_site.collections.pages.resources.find { _1.id == "repo://pages.collection/index.md" }
site.collections.pages.find { _1.id == "repo://pages.collection/index.md" }
end

r.get "render_model" do
Expand Down

0 comments on commit 8bc7224

Please sign in to comment.