Commit 8446734893daf56bc9260d3696c04bd141052504
1 parent
71f3eae0
Exists in
highlighted
Fixed tests [skip ci]
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/highlight_test.rb
... | ... | @@ -93,11 +93,11 @@ class HighlightTest < Minitest::Test |
93 | 93 | |
94 | 94 | product = result.highlighted.first |
95 | 95 | assert_equal "Two Door <em>Cinema</em> Club", product.name |
96 | - assert product.readonly? | |
96 | + assert product.readonly? if defined?(ActiveRecord) | |
97 | 97 | |
98 | 98 | # make sure it doesn't modify original |
99 | 99 | assert_equal "Two Door Cinema Club", result.first.name |
100 | - assert !result.first.readonly? | |
100 | + assert !result.first.readonly? if defined?(ActiveRecord) | |
101 | 101 | end |
102 | 102 | |
103 | 103 | def test_highlighted_load_false | ... | ... |