KITAITI Makoto
null+****@clear*****
Tue Dec 23 09:04:13 JST 2014
KITAITI Makoto 2014-12-23 09:04:13 +0900 (Tue, 23 Dec 2014) New Revision: 9ee48f375bac867e79561cb7d25ea97c9089d0c2 https://github.com/ranguba/epub-searcher/commit/9ee48f375bac867e79561cb7d25ea97c9089d0c2 Message: Extract call of #omit Modified files: test/app/controllers/main_controller_test.rb test/test_config.rb Modified: test/app/controllers/main_controller_test.rb (+4 -2) =================================================================== --- test/app/controllers/main_controller_test.rb 2014-12-23 09:02:42 +0900 (673b522) +++ test/app/controllers/main_controller_test.rb 2014-12-23 09:04:13 +0900 (9992c90) @@ -12,14 +12,16 @@ class MainControllerTest < Test::Unit::TestCase end def test_get_index_query - omit 'Background Droonga processes not running on Travis CI' if ENV['TRAVIS'] + omit_on_travis + get '/?q=test' assert last_response.ok? end def test_get_index_query_form - omit 'Background Droonga processes not running on Travis CI' if ENV['TRAVIS'] + omit_on_travis + visit "/?q=%3C" assert_equal '<', find('form input[type="search"]').value Modified: test/test_config.rb (+4 -0) =================================================================== --- test/test_config.rb 2014-12-23 09:02:42 +0900 (786a961) +++ test/test_config.rb 2014-12-23 09:04:13 +0900 (f401ad7) @@ -36,4 +36,8 @@ class Test::Unit::TestCase def normalize_newline_literal(text) text.gsub(/(?:\\r\\n)+/, "\\r\\n") end + + def omit_on_travis + omit 'Background Droonga processes not running on Travis CI' if ENV['TRAVIS'] + end end -------------- next part -------------- HTML����������������������������...Download