Skip to content

Commit

Permalink
fix: unwanted print to console
Browse files Browse the repository at this point in the history
  • Loading branch information
samnung committed Oct 15, 2023
1 parent 2a80a9c commit 0146073
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/bade/runtime/render_binding.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ def require_relative(filename)
# rubocop:enable Security/Eval
else
context_path = caller_locations(1, 1).first.path
puts "context_path: #{context_path}"

abs_path = File.expand_path(filename, File.dirname(context_path))

Expand Down
1 change: 0 additions & 1 deletion spec/renderer/import_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ def raise_some_error3
expect do
assert_html_from_file '', 'root.bade', print_error_if_error: false
end.to(raise_error do |error|
puts error.message
expect(error.message).to end_with(<<~MSG.rstrip)
template backtrace:
/abc.bade:10:in `raise_some_error3'
Expand Down

0 comments on commit 0146073

Please sign in to comment.