test/integration/sextant_test.rb in sextant-0.2.1 vs test/integration/sextant_test.rb in sextant-0.2.2

- old
+ new

@@ -1,13 +1,24 @@ require 'test_helper' class InheritNavigationTest < ActiveSupport::IntegrationCase + setup do + Capybara.current_driver = Capybara.javascript_driver + end + test 'default index' do visit('/rails/routes') # save_and_open_page assert has_content?('foo_index') assert has_content?('/foo(.:format)') assert has_content?('foo#index') + end + + test 'JS show/hide _path' do + visit('/rails/routes') + assert has_content?('foo_index_path') + click_link('Url') + assert has_content?('foo_index_url') end end