Sha256: c408b4feee3f7b89cdd85d938dd09cf5cc4ae5e28b0676978996f2cb9b9c5e67
Contents?: true
Size: 720 Bytes
Versions: 3
Compression:
Stored size: 720 Bytes
Contents
require 'spec_helper' describe Spree::FaqsController do let!(:question_category) { create(:question_category) } let!(:question) { create(:question, question_category: question_category) } before { controller.stub spree_current_user: nil } context '#index' do specify do categories = [ question_category, create(:question_category), create(:question_category) ] spree_get :index expect(assigns(:categories)).to eq categories expect(response).to be_success end end context '#default_title' do it 'return default title' do expect(subject.default_title).to eq Spree.t(:frequently_asked_questions, scope: :spree_faq) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree-faq-2.2.0 | spec/controllers/faqs_controller_spec.rb |
spree-faq-2.1.0 | spec/controllers/faqs_controller_spec.rb |
spree-faq-2.0.0 | spec/controllers/faqs_controller_spec.rb |