Skip to content

Commit

Permalink
Dry::Types::Struct should be allowed to be blank
Browse files Browse the repository at this point in the history
  • Loading branch information
joevandyk committed Mar 27, 2016
1 parent 8c998de commit 84979b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/dry/types/struct_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ class Test::Foo < Dry::Types::Struct
end
}.to raise_error(ArgumentError)
end

it 'works on blank structs' do
class Test::Foo < Dry::Types::Struct; end
expect(Test::Foo.new).to be_kind_of(Test::Foo)
end
end

describe 'with a safe schema' do
Expand Down

0 comments on commit 84979b0

Please sign in to comment.