summaryrefslogtreecommitdiff
path: root/spec/features/explore/topics_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/explore/topics_spec.rb')
-rw-r--r--spec/features/explore/topics_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/features/explore/topics_spec.rb b/spec/features/explore/topics_spec.rb
index d6f3d6a123d..f0c57c2417a 100644
--- a/spec/features/explore/topics_spec.rb
+++ b/spec/features/explore/topics_spec.rb
@@ -13,13 +13,13 @@ RSpec.describe 'Explore Topics' do
end
context 'when topics exist' do
- let!(:topic) { create(:topic, name: 'topic1') }
+ let!(:topic) { create(:topic, name: 'topic1', title: 'Topic 1') }
it 'renders topic list' do
visit topics_explore_projects_path
expect(page).to have_current_path topics_explore_projects_path, ignore_query: true
- expect(page).to have_content('topic1')
+ expect(page).to have_content(topic.title)
end
end
end