Fix #2894: Use [[:space:]] instead of \s in regexes.
This commit is contained in:
@@ -298,5 +298,10 @@ class CommentTest < ActiveSupport::TestCase
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context "during validation" do
|
||||
subject { FactoryBot.build(:comment) }
|
||||
should_not allow_value(" ").for(:body)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user