Sha256: cec2f734f9d8c30c0d491e4c06e83d57efecb3205b299961ffaf5774001008b9
Contents?: true
Size: 772 Bytes
Versions: 5
Compression:
Stored size: 772 Bytes
Contents
require 'spec_helper' describe Spree::AppConfiguration, :type => :model do let (:prefs) { Rails.application.config.spree.preferences } it "should be available from the environment" do prefs.layout = "my/layout" expect(prefs.layout).to eq "my/layout" end it "should be available as Spree::Config for legacy access" do expect(Spree::Config).to be_a Spree::AppConfiguration end it "uses base searcher class by default" do expect(prefs.searcher_class).to eq Spree::Core::Search::Base end it "uses variant search class by default" do expect(prefs.variant_search_class).to eq Spree::Core::Search::Variant end describe '#stock' do subject { prefs.stock } it { is_expected.to be_a Spree::Core::StockConfiguration } end end
Version data entries
5 entries across 5 versions & 1 rubygems