spec/features/faq_spec.rb in spree-faq-2.1.1 vs spec/features/faq_spec.rb in spree-faq-2.2.0
- old
+ new
@@ -1,15 +1,15 @@
-RSpec.feature 'FAQ', :js do
+require 'spec_helper'
+feature 'FAQ', :js do
+
given!(:user) { create(:user) }
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
visit spree.faq_path
end