diff options
Diffstat (limited to 'spec/hashie/dash_spec.rb')
-rw-r--r-- | spec/hashie/dash_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/hashie/dash_spec.rb b/spec/hashie/dash_spec.rb index 5f3bfe3..3adfc8f 100644 --- a/spec/hashie/dash_spec.rb +++ b/spec/hashie/dash_spec.rb @@ -606,3 +606,13 @@ context 'with method access' do it { is_expected.to eq true } end end + +RSpec.describe Hashie::Dash do + let(:test) do + Class.new(Hashie::Dash) do + property :description, default: '' + end + end + + include_examples 'Dash default handling', :description +end |