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

- old
+ new

@@ -1,8 +1,6 @@ -require 'spec_helper' - -feature 'Admin FAQ', :js do +RSpec.feature 'Admin FAQ', :js do stub_authorization! given!(:admin_user) { create(:admin_user) } background do @@ -37,13 +35,15 @@ 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