diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-10 08:00:25 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-07-10 08:00:25 +0000 |
commit | 932d4cdfead379e24934df6530f4d98abcfab18e (patch) | |
tree | 05e4cdb1ff572d8c35df61260f2892d0b40c94ed /test/test_helper.rb | |
parent | 4a4a71349a45bdc8a55071e535bc0a8b9c02a5ee (diff) | |
download | redmine-932d4cdfead379e24934df6530f4d98abcfab18e.tar.gz redmine-932d4cdfead379e24934df6530f4d98abcfab18e.zip |
Adds "between" operator for numeric filters (#6180).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6217 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 0c082034b..3603befe7 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -127,6 +127,10 @@ class ActiveSupport::TestCase def assert_error_tag(options={}) assert_tag({:attributes => { :id => 'errorExplanation' }}.merge(options)) end + + def assert_include(expected, s) + assert s.include?(expected), "\"#{expected}\" not found in \"#{s}\"" + end # Shoulda macros def self.should_render_404 |