test/features/erd_test.rb in erd-0.4.0 vs test/features/erd_test.rb in erd-0.5.0

- old
+ new

@@ -1,10 +1,17 @@ +# frozen_string_literal: true + require 'test_helper' class ErdIndexTest < ActionDispatch::IntegrationTest test 'with author and book model' do visit '/erd' - assert has_content? 'Author', minimum: 1 + + if Capybara::VERSION > '3' + assert has_content? 'Author', :minimum => 1 + else + assert has_content? 'Author' + end assert has_content? 'name' assert has_content? 'Book' assert has_content? 'title' end end