spec/integration/yard/sinclair/options_parser_spec.rb in sinclair-1.6.5 vs spec/integration/yard/sinclair/options_parser_spec.rb in sinclair-1.6.6
- old
+ new
@@ -11,7 +11,16 @@
describe '#the_method' do
it 'returns the value for option given' do
expect(model.the_method).to eq('The value is not 10 but 20')
end
end
+
+ describe '.skip_validation' do
+ it 'accepts options' do
+ options = BuilderOptions.new(name: 'Joe', age: 10)
+
+ expect(options.name).to eq('Joe')
+ expect(options.try(:age)).to be_nil
+ end
+ end
end
end