Skip to content

Commit

Permalink
Use Array.of(ID) in spec models to model good modeling to ensure cast…
Browse files Browse the repository at this point in the history
…ing.
  • Loading branch information
cjcolvar committed Jan 30, 2019
1 parent 304328f commit ac04fd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/valkyrie/specs/shared_specs/queries.rb
Expand Up @@ -4,7 +4,7 @@
raise 'adapter must be set with `let(:adapter)`' unless
defined? adapter
class CustomResource < Valkyrie::Resource
attribute :alternate_ids, Valkyrie::Types::Array
attribute :alternate_ids, Valkyrie::Types::Set.of(Valkyrie::Types::ID)
attribute :title
attribute :member_ids, Valkyrie::Types::Array
attribute :a_member_of, Valkyrie::Types::Array
Expand Down
2 changes: 1 addition & 1 deletion spec/valkyrie/persistence/fedora/persister_spec.rb
Expand Up @@ -69,7 +69,7 @@ class CustomResource < Valkyrie::Resource
raise 'persister must be set with `let(:persister)`' unless defined? persister
class CustomResource < Valkyrie::Resource
include Valkyrie::Resource::AccessControls
attribute :alternate_ids, Valkyrie::Types::Array
attribute :alternate_ids, Valkyrie::Types::Set.of(Valkyrie::Types::ID)
attribute :title
attribute :author
attribute :member_ids
Expand Down

0 comments on commit ac04fd7

Please sign in to comment.