Skip to content

Commit a6811e4

Browse files
committed
Fix search spec expectations
With the old design, we were filtering out archived topics by default.
1 parent 3795fe7 commit a6811e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/system/topics/search_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
select "English", from: "search_language_id"
100100

101101
expect(page).to have_text(english_active_topic.title)
102-
expect(page).not_to have_text(english_archived_topic.title)
102+
expect(page).to have_text(english_archived_topic.title)
103103
expect(page).not_to have_text(spanish_active_topic.title)
104104
end
105105
end
@@ -125,7 +125,7 @@
125125
select "2", from: "search_month"
126126

127127
expect(page).to have_text(spanish_active_topic.title)
128-
expect(page).not_to have_text(english_archived_topic.title)
128+
expect(page).to have_text(english_archived_topic.title)
129129
expect(page).not_to have_text(english_active_topic.title)
130130

131131
select "3", from: "search_month"
@@ -233,7 +233,7 @@
233233
select "English", from: "search_language_id"
234234

235235
expect(page).to have_text(english_active_topic.title)
236-
expect(page).not_to have_text(english_archived_topic.title)
236+
expect(page).to have_text(english_archived_topic.title)
237237
expect(page).not_to have_text(spanish_active_topic.title)
238238
end
239239
end
@@ -259,7 +259,7 @@
259259
select "2", from: "search_month"
260260

261261
expect(page).to have_text(spanish_active_topic.title)
262-
expect(page).not_to have_text(english_archived_topic.title)
262+
expect(page).to have_text(english_archived_topic.title)
263263
expect(page).not_to have_text(english_active_topic.title)
264264

265265
select "3", from: "search_month"

0 commit comments

Comments
 (0)