We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 760e6ef commit 0011693Copy full SHA for 0011693
spec/views/pages/_forms.html.erb_spec.rb
@@ -136,6 +136,7 @@
136
137
it "does not display the file body text" do
138
expect(rendered).not_to have_text(I18n.t("helpers.label.pages_question_input.file_body_html"))
139
+ expect(rendered).not_to have_text(I18n.t("helpers.label.pages_question_input.summary"))
140
end
141
142
context "when the answer type is file" do
@@ -152,6 +153,8 @@
152
153
154
it "displays the file body text" do
155
expect(rendered).to include(I18n.t("helpers.label.pages_question_input.file_body_html"))
156
+ expect(rendered).to have_text(I18n.t("helpers.label.pages_question_input.summary"))
157
+ expect(rendered).to include(I18n.t("helpers.label.pages_question_input.summary_body_html"))
158
159
160
it "has a field with the file question text" do
0 commit comments