Skip to content

Commit dbf30b6

Browse files
committed
Updating banner mock to correct stubbing in tests
1 parent 30ff73e commit dbf30b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/cms/providers/strapi/mocks/collections/site_wide_banner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Strapi
44
module Mocks
55
module Collections
66
class SiteWideBanner < StrapiMock
7-
attribute(:textContent) { Text::RichBlocks.as_model }
7+
attribute(:textContent) { Text::RichBlocks.generate_data }
88
attribute(:startTime) { Faker::Time.backward(days: 2) }
99
attribute(:endTime) { Faker::Time.forward(days: 2) }
1010
end

0 commit comments

Comments
 (0)