Skip to content

Commit 0011693

Browse files
committed
Update rspec tests
1 parent 760e6ef commit 0011693

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/views/pages/_forms.html.erb_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@
136136

137137
it "does not display the file body text" do
138138
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"))
139140
end
140141

141142
context "when the answer type is file" do
@@ -152,6 +153,8 @@
152153

153154
it "displays the file body text" do
154155
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"))
155158
end
156159

157160
it "has a field with the file question text" do

0 commit comments

Comments
 (0)