spec/nanoc/base/entities/props_spec.rb in nanoc-4.7.1 vs spec/nanoc/base/entities/props_spec.rb in nanoc-4.7.2
- old
+ new
@@ -87,11 +87,11 @@
context 'nothing + all' do
let(:props) { described_class.new }
let(:other_props) { props_all }
- it { is_expected.to eql(Set.new([:raw_content, :attributes, :compiled_content, :path])) }
+ it { is_expected.to eql(Set.new(%i(raw_content attributes compiled_content path))) }
end
context 'some + nothing' do
let(:props) { described_class.new(compiled_content: true) }
let(:other_props) { described_class.new }
@@ -101,39 +101,39 @@
context 'some + others' do
let(:props) { described_class.new(compiled_content: true) }
let(:other_props) { described_class.new(raw_content: true) }
- it { is_expected.to eql(Set.new([:raw_content, :compiled_content])) }
+ it { is_expected.to eql(Set.new(%i(raw_content compiled_content))) }
end
context 'some + all' do
let(:props) { described_class.new(compiled_content: true) }
let(:other_props) { props_all }
- it { is_expected.to eql(Set.new([:raw_content, :attributes, :compiled_content, :path])) }
+ it { is_expected.to eql(Set.new(%i(raw_content attributes compiled_content path))) }
end
context 'all + nothing' do
let(:props) { props_all }
let(:other_props) { described_class.new }
- it { is_expected.to eql(Set.new([:raw_content, :attributes, :compiled_content, :path])) }
+ it { is_expected.to eql(Set.new(%i(raw_content attributes compiled_content path))) }
end
context 'some + all' do
let(:props) { props_all }
let(:other_props) { described_class.new(compiled_content: true) }
- it { is_expected.to eql(Set.new([:raw_content, :attributes, :compiled_content, :path])) }
+ it { is_expected.to eql(Set.new(%i(raw_content attributes compiled_content path))) }
end
context 'all + all' do
let(:props) { props_all }
let(:other_props) { props_all }
- it { is_expected.to eql(Set.new([:raw_content, :attributes, :compiled_content, :path])) }
+ it { is_expected.to eql(Set.new(%i(raw_content attributes compiled_content path))) }
end
end
describe '#active' do
subject { props.active }
@@ -163,15 +163,15 @@
it { is_expected.to eql(Set.new([:path])) }
end
context 'attributes and compiled_content active' do
let(:props) { described_class.new(attributes: true, compiled_content: true) }
- it { is_expected.to eql(Set.new([:attributes, :compiled_content])) }
+ it { is_expected.to eql(Set.new(%i(attributes compiled_content))) }
end
context 'all active' do
let(:props) { described_class.new(raw_content: true, attributes: true, compiled_content: true, path: true) }
- it { is_expected.to eql(Set.new([:raw_content, :attributes, :compiled_content, :path])) }
+ it { is_expected.to eql(Set.new(%i(raw_content attributes compiled_content path))) }
end
end
describe '#to_h' do
subject { props.to_h }