Sha256: 87703914749f37f077c06a2d82259bc26a55af2f87ee00caa496437cfe4c34ef
Contents?: true
Size: 696 Bytes
Versions: 2
Compression:
Stored size: 696 Bytes
Contents
require "spec_helper" describe Sitepress::RailsConfiguration do subject { Sitepress::RailsConfiguration.new } context "#partials" do it "excludes partials" do expect(subject.site.resources.size).to eql(2) end end context "#cache_resources" do context "Rails.configuration.cache_classes=true" do before { Rails.configuration.cache_classes = true } it "is true" do expect(subject.cache_resources).to eql(true) end end context "Rails.configuration.cache_classes=false" do before { Rails.configuration.cache_classes = false } it "is false" do expect(subject.cache_resources).to eql(false) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sitepress-rails-0.1.22 | spec/sitepress/rails_configuration_spec.rb |
sitepress-rails-0.1.21 | spec/sitepress/rails_configuration_spec.rb |