Skip to content

Commit

Permalink
Remove use of erubis in the specs
Browse files Browse the repository at this point in the history
Tilt will be dropping support for erubis in its next version.

Switch sinatra spec to use erubi instead.
  • Loading branch information
jeremyevans committed Sep 12, 2024
1 parent 0c12c48 commit 2711709
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
6 changes: 1 addition & 5 deletions spec/roda_integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
begin
require 'tilt/erubi'
rescue LoadError
begin
require 'tilt/erubis'
rescue LoadError
require 'tilt/erb'
end
require 'tilt/erb'
end

def FormeRodaTest(block=ERB_BLOCK)
Expand Down
7 changes: 1 addition & 6 deletions spec/sinatra_integration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,9 @@
warn "unable to load sinatra or rack/csrf, skipping sinatra spec"
else
begin
require 'tilt/erubis'
require 'tilt/erubi'
rescue LoadError
require 'tilt/erb'
begin
require 'erubis'
rescue LoadError
require 'erb'
end
end
require_relative '../lib/forme/erb'
class FormeSinatraTest < Sinatra::Base
Expand Down

0 comments on commit 2711709

Please sign in to comment.