Skip to content

Commit 59d3ab7

Browse files
committed
Addressing PR comments
1 parent 9e68e66 commit 59d3ab7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/services/cms/providers/strapi/mocks/course_card_section.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module Strapi
44
module Mocks
55
class CourseCardSection < StrapiMock
66
strapi_component "blocks.course-cards-section"
7+
78
attribute(:sectionTitle) { Faker::Lorem.sentence }
89
attribute(:introText) { RichBlocks.generate_data }
910
attribute(:cards) { Array.new(3) { DynamicComponents::CourseCard.generate_data } }

spec/components/cms/course_card_component_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
))
1717
end
1818

19-
it "renders the banner text" do
19+
it "renders the banner text and makes it uppercase" do
2020
expect(page).to have_css(".courses-cms-card__banner", text: "BANNER TEXT")
2121
end
2222

0 commit comments

Comments
 (0)