Skip to content

Commit

Permalink
fix integration api tests seek4science#1693
Browse files Browse the repository at this point in the history
  • Loading branch information
stuzart committed Feb 13, 2024
1 parent eeb94b2 commit f3647e4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/integration/api/sample_controlled_vocab_api_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,12 @@ def setup
@sample_controlled_vocab.sample_controlled_vocab_terms << @sample_controlled_vocab_term
@sample_controlled_vocab.save!
end

def private_resource
# setting the key to a known key will make it a system vocab which isn't editable or deletable
@sample_controlled_vocab.update_column(:key, SampleControlledVocab::SystemVocabs.database_key_for_property(:topics))
refute @sample_controlled_vocab.can_edit?
refute @sample_controlled_vocab.can_delete?
@sample_controlled_vocab
end
end

0 comments on commit f3647e4

Please sign in to comment.