KITAITI Makoto
null+****@clear*****
Sun Sep 20 18:09:34 JST 2015
KITAITI Makoto 2015-09-20 18:09:34 +0900 (Sun, 20 Sep 2015) New Revision: 6699fece634684c98bf10283f32c5d4056216282 https://github.com/ranguba/epub-searcher/commit/6699fece634684c98bf10283f32c5d4056216282 Message: Add test for query words in result page Modified files: test/app/controllers/main_controller_test.rb Modified: test/app/controllers/main_controller_test.rb (+8 -0) =================================================================== --- test/app/controllers/main_controller_test.rb 2015-09-20 17:42:19 +0900 (0a2a8c0) +++ test/app/controllers/main_controller_test.rb 2015-09-20 18:09:34 +0900 (2bad038) @@ -41,6 +41,14 @@ class MainControllerTest < Test::Unit::TestCase assert_equal '<', find('form input[type="search"]').value end + def test_search_word_in_result_page + omit_on_travis + + visit "/?q=%3C" + + assert_match /</, find('h1').text + end + def test_get_books omit_on_travis -------------- next part -------------- HTML����������������������������... 下載