Sha256: 17bee6ddbf689bdf87348a62137b0409588520cf1448ee45d104fd3cc7f7178f
Contents?: true
Size: 836 Bytes
Versions: 10
Compression:
Stored size: 836 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 Spree::Config.layout = "my/layout" expect(Spree::Config.layout).to eq "my/layout" end it "uses base searcher class by default" do prefs.searcher_class = nil expect(prefs.searcher_class).to eq Spree::Core::Search::Base end describe 'admin_path' do it { expect(Spree::Config).to have_preference(:admin_path) } it { expect(Spree::Config.preferred_admin_path_type).to eq(:string) } it { expect(Spree::Config.preferred_admin_path_default).to eq('/admin') } end end
Version data entries
10 entries across 10 versions & 1 rubygems