Skip to content

Commit

Permalink
Fix legacy specs
Browse files Browse the repository at this point in the history
loofah > 2.21.0 raise an issue when starting old Rails versions

```
lib/loofah/html4/document.rb:10:in `<module:HTML4>': uninitialized constant Nokogiri::HTML4 (NameError)
```
  • Loading branch information
tagliala committed Jun 2, 2023
1 parent 9868dde commit b90f6b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gemfiles/rails_5.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ source "https://rubygems.org"

gem "rails", "~> 5.0.0"

gem 'loofah', '~> 2.20.0'

# Fix code coverage on old Ruby versions
if RUBY_VERSION < '2.5'
gem 'simplecov', '< 0.18.0'
Expand Down

0 comments on commit b90f6b6

Please sign in to comment.