Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Commit

Permalink
Merge 72c4756 into 3c94115
Browse files Browse the repository at this point in the history
  • Loading branch information
carolyncole committed Mar 14, 2019
2 parents 3c94115 + 72c4756 commit d27afba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/cho/csv/hash_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ def errors
current_errors
end

def title
['Missing']
end

def valid?
false
end
Expand Down
1 change: 1 addition & 0 deletions spec/cho/csv/hash_validator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class SampleChangeSet < Valkyrie::ChangeSet

it 'is not valid and has errors' do
expect(change_set).not_to be_valid
expect(change_set.title).to eq(['Missing'])
expect(change_set.errors.full_messages).to eq(['Id does not exist'])
end
end
Expand Down

0 comments on commit d27afba

Please sign in to comment.