diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-07-31 20:48:00 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-08-17 12:58:57 -0300 |
commit | 4b75c75018c9a3eac7a2c8b1772a10c98ea3bdc0 (patch) | |
tree | 141c6c6db67a03d44980b77b7a6f5e24d6ec628d /spec/models/board_spec.rb | |
parent | 252e93c9e664e595ea9b4987f14ca8fb21a0e307 (diff) | |
download | gitlab-ce-4b75c75018c9a3eac7a2c8b1772a10c98ea3bdc0.tar.gz |
The lists: Backlog, and Done cannot be destroyed
Diffstat (limited to 'spec/models/board_spec.rb')
-rw-r--r-- | spec/models/board_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/board_spec.rb b/spec/models/board_spec.rb index 23a91619a27..12d29540137 100644 --- a/spec/models/board_spec.rb +++ b/spec/models/board_spec.rb @@ -3,7 +3,7 @@ require 'rails_helper' describe Board do describe 'relationships' do it { is_expected.to belong_to(:project) } - it { is_expected.to have_many(:lists).order(list_type: :asc, position: :asc).dependent(:destroy) } + it { is_expected.to have_many(:lists).order(list_type: :asc, position: :asc).dependent(:delete_all) } end describe 'validations' do |