Sha256: 2b4e4aa4b706232a444de8c687b69f5d3758f6ee75ade0c9a8b1c99735a0eb15
Contents?: true
Size: 483 Bytes
Versions: 1
Compression:
Stored size: 483 Bytes
Contents
require "spec_helper" describe Mascot::RailsConfiguration do subject { Mascot::RailsConfiguration.new } context "#partials" do it "excludes by default" do expect(subject.partials).to be false end it "excludes partials if false" do subject.partials = false expect(subject.resources.to_a.size).to eql(2) end it "includes partials if true" do subject.partials = true expect(subject.resources.to_a.size).to eql(3) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mascot-rails-0.1.12 | spec/mascot/rails_configuration_spec.rb |