Skip to content

Commit 6289961

Browse files
Linting
1 parent 6571afe commit 6289961

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec/models/organisation_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,8 @@
254254
end
255255

256256
it "adds an error to the organisation" do
257-
organisation.destroy
257+
result = organisation.destroy
258+
expect(result).to be false
258259
expect(organisation.errors[:base]).to include("Cannot delete record because dependent organisation vacancies exist")
259260
end
260261
end

0 commit comments

Comments
 (0)