From 1b376bcebbfe85dede976c1ed212d3cfad17db7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Mon, 8 Sep 2014 17:26:58 -0300 Subject: [PATCH] Add label to NO_STIP list of rails-dom-assertion Related with rails/rails-dom-testing#15 --- test/test_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index 3c5c3f0a..6dca5e43 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -30,7 +30,9 @@ I18n.default_locale = :en require 'country_select' -if defined?(ActionDispatch::Assertions::NO_STRIP) +if defined?(HTMLSelector::NO_STRIP) + HTMLSelector::NO_STRIP << "label" +else ActionDispatch::Assertions::NO_STRIP << "label" end