test/controllers/incline/welcome_controller_test.rb in incline-0.1.7 vs test/controllers/incline/welcome_controller_test.rb in incline-0.1.8
- old
+ new
@@ -1,14 +1,14 @@
require 'test_helper'
class WelcomeControllerTest < ActionDispatch::IntegrationTest
-
+
+ # 2017-08-03: root path should be changeable by actual app. remove jumbotron check and instead do some link checks that should always be present.
test 'should get root_path' do
get root_path
assert_response :success
assert_select 'title', full_title
- assert_select 'div.jumbotron'
- assert_select 'a[href=?]', root_path, count: 2
+ assert_select 'a[href=?]', main_app.root_path, count: 2
assert_select 'a[href=?]', incline.login_path, count: 1
assert_select 'a[href=?]', incline.contact_path, count: 1
end