spec/features/admin/faq_spec.rb in spree-faq-2.0.1 vs spec/features/admin/faq_spec.rb in spree-faq-2.1.0

- old
+ new

@@ -1,6 +1,8 @@ -RSpec.feature 'Admin FAQ', :js do +require 'spec_helper' + +feature 'Admin FAQ', :js do stub_authorization! given!(:admin_user) { create(:admin_user) } background do @@ -35,15 +37,13 @@ context 'modify' do given!(:question_category) { create(:question_category, name: 'Shopping') } given!(:question) do - create( - :question, + create(:question, question_category: question_category, question: 'Do you sell stuff?', - answer: 'Think so..' - ) + answer: 'Think so..') end background do click_link 'FAQ' end