diff --git a/Gemfile.lock b/Gemfile.lock index 96b969ee3..0855b2794 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -88,7 +88,7 @@ GEM unf (>= 0.0.5, < 1.0.0) erubi (1.8.0) execjs (2.7.0) - faker (1.9.6) + faker (2.1.0) i18n (>= 0.7) faraday (0.15.4) multipart-post (>= 1.2, < 3) diff --git a/test/integration/document_collection_test.rb b/test/integration/document_collection_test.rb index ae5a257e5..0f67e1a94 100644 --- a/test/integration/document_collection_test.rb +++ b/test/integration/document_collection_test.rb @@ -10,7 +10,7 @@ class DocumentCollectionTest < ActionDispatch::IntegrationTest test "document collection with no body and 2 collection groups where 1st group has long body" do content_item = get_content_example('document_collection') - content_item['details']['collection_groups'][0]['body'] = Faker::Lorem.characters(416) + content_item['details']['collection_groups'][0]['body'] = Faker::Lorem.characters(number: 416) content_store_has_item(content_item['base_path'], content_item.to_json) visit(content_item['base_path']) diff --git a/test/integration/topical_event_about_page_test.rb b/test/integration/topical_event_about_page_test.rb index 9640c7dda..3c3c408e9 100644 --- a/test/integration/topical_event_about_page_test.rb +++ b/test/integration/topical_event_about_page_test.rb @@ -50,8 +50,8 @@ def topical_event_end_date def long_first_item_body "
#{Faker::Lorem.characters(200)}
-#{Faker::Lorem.characters(216)}
+#{Faker::Lorem.characters(number: 200)}
+#{Faker::Lorem.characters(number: 216)}
#{Faker::Lorem.sentence}
#{Faker::Lorem.characters(220)}
-#{Faker::Lorem.characters(196)}
+#{Faker::Lorem.characters(number: 220)}
+#{Faker::Lorem.characters(number: 196)}
#{Faker::Lorem.sentence}
" end @@ -96,13 +96,13 @@ def body class << @contents_list def body "#{Faker::Lorem.characters(40)}
+#{Faker::Lorem.characters(number: 40)}
#{Faker::Lorem.characters(40)}
+#{Faker::Lorem.characters(number: 40)}
#{Faker::Lorem.sentence}
" end @@ -129,8 +129,8 @@ def body class << @contents_list def body "#{Faker::Lorem.characters(10)}
-#{Faker::Lorem.characters(10)}
+#{Faker::Lorem.characters(number: 10)}
+#{Faker::Lorem.characters(number: 10)}
#{Faker::Lorem.sentence}
" end @@ -168,7 +168,7 @@ class << @contents_list def body "#{Faker::Lorem.characters(225)}
+#{Faker::Lorem.characters(number: 225)}
#{Faker::Lorem.sentence}
" end @@ -193,7 +193,7 @@ def body test "#show_contents_list? returns true if body is over 415 characters and has no h2s present" do class << @contents_list def body - "#{Faker::Lorem.characters(416)}
#{Faker::Lorem.characters(number: 416)}