We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fd13ee commit 2ac92e7Copy full SHA for 2ac92e7
spec/live/organization_field_spec.rb
@@ -8,5 +8,5 @@ def valid_attributes
8
it_should_be_creatable
9
it_should_be_updatable :title, "key"
10
it_should_be_readable :organization_fields, :create => true
11
- it_should_be_deletable
+ it_should_be_deletable :marked_for_deletion => true
12
end
spec/macros/resource_macros.rb
@@ -110,7 +110,7 @@ def it_should_be_deletable(options = {})
110
if options[:find]
111
expect(obj.send(options[:find].first)).to eq(options[:find].last)
112
else
113
- expect(obj.nil? || !obj.active?).to eq(true)
+ options[:marked_for_deletion] ? (expect(obj.active?).to be_falsey) : (expect(obj).to be_nil)
114
115
116
0 commit comments