Skip to content
Permalink
Browse files

Fix duplicate process bug #5379 (#5391)

* Fix duplicate process bug - #5379

* Add test and update CHANGELOG

* Fix .rubycop config file for tests
  • Loading branch information...
zvlex authored and oriolgual committed Oct 18, 2019
1 parent b9e9df7 commit 835ad30b5860b813d1d6b2b3fbb4d174e9ea0d52
@@ -1231,7 +1231,7 @@ RSpec/MessageSpies:
Enabled: false

RSpec/MultipleExpectations:
Max: 17
Enabled: false

RSpec/NestedGroups:
Max: 7
@@ -80,6 +80,7 @@
- **decidim-core** Fix omniauth registration edge cases and specs [#5397](https://github.com/decidim/decidim/pull/5397)
- **decidim-core**: Fix errors controller forgery protection [#5398](https://github.com/decidim/decidim/pull/5398)
- **decidim-meetings**, **decidim-core**: Various bugfixes [#5402](https://github.com/decidim/decidim/pull/5402)
- **decidim-participatory_processes**: Fix: Duplicate private process [\#5379](https://github.com/decidim/decidim/pull/5379)

**Removed**:

@@ -60,7 +60,8 @@ def copy_participatory_process
meta_scope: @participatory_process.meta_scope,
start_date: @participatory_process.start_date,
end_date: @participatory_process.end_date,
participatory_process_group: @participatory_process.participatory_process_group
participatory_process_group: @participatory_process.participatory_process_group,
private_space: @participatory_process.private_space
)
end

@@ -66,6 +66,7 @@ module Decidim::ParticipatoryProcesses
expect(new_participatory_process.meta_scope).to eq(old_participatory_process.meta_scope)
expect(new_participatory_process.end_date).to eq(old_participatory_process.end_date)
expect(new_participatory_process.participatory_process_group).to eq(old_participatory_process.participatory_process_group)
expect(new_participatory_process.private_space).to eq(old_participatory_process.private_space)
end

it "broadcasts ok" do

0 comments on commit 835ad30

Please sign in to comment.
You can’t perform that action at this time.