Skip to content

Commit

Permalink
cater for Organization field being marked for deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
fbvilela committed Sep 3, 2024
1 parent 9fd13ee commit 2ac92e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/live/organization_field_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ def valid_attributes
it_should_be_creatable
it_should_be_updatable :title, "key"
it_should_be_readable :organization_fields, :create => true
it_should_be_deletable
it_should_be_deletable :marked_for_deletion => true
end
2 changes: 1 addition & 1 deletion spec/macros/resource_macros.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def it_should_be_deletable(options = {})
if options[:find]
expect(obj.send(options[:find].first)).to eq(options[:find].last)
else
expect(obj.nil? || !obj.active?).to eq(true)
options[:marked_for_deletion] ? (expect(obj.active?).to be_falsey) : (expect(obj).to be_nil)
end
end
end
Expand Down

0 comments on commit 2ac92e7

Please sign in to comment.