spec/signore/settings_spec.rb in signore-0.2.3 vs spec/signore/settings_spec.rb in signore-0.2.4
- old
+ new
@@ -40,8 +40,12 @@
describe '#tags' do
it 'returns the forbidden and required tags' do
tags = Tags.new(forbidden: %w(tech), required: %w(en))
Settings.new(%w(prego ~tech en)).tags.must_equal tags
end
+
+ it 'doesn’t blow up on empty args' do
+ Settings.new([]).tags.must_equal Tags.new
+ end
end
end
end