<commit_before>require 'rails_helper'

feature 'Browse all questions', %q{
  In order to find question or answer
  As an user
  I want to be able browse all questions
} do

  scenario 'User can browse all questions' do
    @questions = create_list(:valid_question, 3)
    visit '/questions'
    expect(page).to have_css('.question_title', count: 3)
  end
end<commit_msg>fix browse all question feature<commit_after>require 'rails_helper'

feature 'Browse all questions', %q{
  In order to find question or answer
  As an user
  I want to be able browse all questions
} do
  given(:user) { create(:user) }

  scenario 'User can browse all questions' do
    @questions = create_list(:valid_question, 3, user: user )
    visit '/questions'
    expect(page).to have_css('.question_title', count: 3)
  end
end
{'fraction_non_alphanumeric': 0.09203980099502487, 'fraction_numerical': 0.004975124378109453, 'mean_word_length': 4.094936708860759, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6188929', 'n_tokens_mistral': 258, 'n_tokens_neox': 242, 'n_words': 95}