Skip to content

Commit 30ff73e

Browse files
committed
Standardrb fix
1 parent 360166b commit 30ff73e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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.generate_data }
7+
attribute(:textContent) { Text::RichBlocks.as_model }
88
attribute(:startTime) { Faker::Time.backward(days: 2) }
99
attribute(:endTime) { Faker::Time.forward(days: 2) }
1010
end

spec/services/cms/providers/strapi/queries/site_wide_banner_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
startTime
77
endTime
88
textContent
9-
]}
9+
]
10+
}
1011
end

0 commit comments

Comments
 (0)