María Checa
c27e6ab1d1
Merge pull request #2223 from wairbut-m2c/iagirre-prevent-edition-if-budget-final-phase
...
Prevent edition of investments if budget is in the final phase
2018-01-09 12:18:23 +01:00
María Checa
96859190be
Merge pull request #2280 from consul/2277-budgets_new_form
...
Budgets new form
2018-01-09 11:55:10 +01:00
BertoCQ
6e96c8c057
Merge branch 'master' into feature/2275#destroy_budgets
2018-01-09 11:03:51 +01:00
BertoCQ
01c41c7cca
Merge pull request #2284 from consul/feature/2276#admin_budget_edit_redirect
...
Redirect admin to budget lists after edit
2018-01-09 10:50:54 +01:00
BertoCQ
bcec5f779a
Merge pull request #2285 from consul/feature/2278#budget_draft_phase
...
Feature/2278#budget draft phase
2018-01-09 10:50:40 +01:00
Bertocq
7c7f903ed0
Make customization engine spec less prone to flaky failures
2018-01-09 01:33:44 +01:00
Bertocq
2c3d8e9fd5
Avoid creating a budget in drafting phase to test results access
2018-01-09 01:16:09 +01:00
Bertocq
beee890285
Login as admin before visiting drafting budget on spec
2018-01-09 00:34:16 +01:00
Bertocq
0f5999fb8d
Move admin creation into shared let on spec
2018-01-09 00:33:55 +01:00
María Checa
d8a6bb0f91
Changed tests
2018-01-09 00:09:50 +01:00
María Checa
5161988844
Removed external_url input
2018-01-08 23:22:46 +01:00
Bertocq
d0937d7022
Add description_drafting column to budgets table
2018-01-08 22:55:37 +01:00
Bertocq
9739576e4e
Add drafting phase trait to budget factory
2018-01-08 22:54:10 +01:00
Bertocq
1f0eb49ddc
Increase budget model spec for drafting phase
2018-01-08 22:53:14 +01:00
Bertocq
63694b5bae
Increase admin budget feature spec for drafting phase
2018-01-08 22:52:56 +01:00
Bertocq
2026f537e6
Add drafting phase scenario to budget feature spec for list & show checks
2018-01-08 22:51:01 +01:00
Bertocq
506293fc80
Move level two user creation to a shared let on budget feature
2018-01-08 19:59:14 +01:00
Bertocq
377a514128
Refactor commmon budget creation to a shared one at budget feature spec
2018-01-08 19:40:27 +01:00
Bertocq
53842ba919
Add Update scenario to admin budget feature spec
2018-01-08 18:46:50 +01:00
Bertocq
51e3d75c62
Add destroy scenario to budget section of admin panel
2018-01-08 17:48:06 +01:00
Bertocq
581a6eb3ef
Upgrade from factory_girl_rails to factory_bot_rails
...
Guide at https://github.com/thoughtbot/factory_bot/blob/v4.9.0/UPGRADE_FROM_FACTORY_GIRL.md
2018-01-07 23:32:37 +01:00
Bertocq
830bb37189
Enable RSpec/VerifiedDoubles cop, fix issues & stash one
...
Can't figureout solution for offense at spec/models/verification/management/email_spec.rb
so its stashed at .rubocop_todo.yml
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/VerifiedDoubles
2018-01-07 18:47:19 +01:00
Bertocq
3762fd347e
Enable RSpec/ScatteredSetup & fix issue
...
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ScatteredSetup
2018-01-07 18:46:58 +01:00
Bertocq
f8fb32db76
Enable RSpec/ScatteredLet cop & fix issue
...
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ScatteredLet
2018-01-07 18:46:58 +01:00
Bertocq
16eae689f9
Enable RSpec/RepeatedExample cop & fix all issues
...
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RepeatedExample
2018-01-07 18:46:32 +01:00
Bertocq
4f6597b200
Enable RSpec/RepeatedDescription cop & fix all issues
...
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RepeatedDescription
2018-01-07 17:45:34 +01:00
Bertocq
e89d081a47
Enable RSpec/PredicateMatcher cop & fix all issues
...
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/PredicateMatcher
2018-01-07 17:42:59 +01:00
Bertocq
34bb9d65b1
Enable RSpec/NotToNot cop and fix all issues
...
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot
2018-01-07 17:39:48 +01:00
Bertocq
c4aa2d7093
Enable RSpec/MessageExpectation cop & fix issues
...
There was 34 `allow` occurences and 17 `expect` occurences, so to be consistent `allow` form was chosen.
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MessageExpectation
2018-01-07 16:36:18 +01:00
Bertocq
2d355ce938
Enable RSpec/LetSetup cop & fix issues
...
Read more about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LetSetup
2018-01-07 16:23:49 +01:00
Bertocq
3509bfe3e4
Remove spending proposals from sitemap and its test, deprecated model
2018-01-07 15:38:44 +01:00
BertoCQ
abfa203f5c
Merge pull request #2249 from wairbut-m2c/aperez-sitemap-specs
...
Specs for valid sitemap generation
2018-01-07 11:24:43 +01:00
Bertocq
3e5b13ae4d
Enable RSpec/LetBeforeExamples cop & fix issues
...
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LetBeforeExamples
2018-01-07 02:28:06 +01:00
Bertocq
eaf66e3ec1
Enable RSpec/IteratedExpectation cop and fix issues
...
Suggested refactor is only available for `.to` and not for `.not_to` :(
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/IteratedExpectation
2018-01-07 02:24:24 +01:00
Bertocq
1441de5107
Enable RSpec/HookArgument cop and fix issues
...
To be consistent about before/after arguments, as `:each` or `:example`
are same and default scopes, best not to send an argument in those
scenarios.
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/HookArgument
2018-01-07 02:07:19 +01:00
Bertocq
95733f52f2
Enable RSpec/FilePath cop and fix all issues
...
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FilePath
2018-01-07 02:05:10 +01:00
Bertocq
97c5490995
Fix unnecesary spacing
2018-01-07 01:58:45 +01:00
Bertocq
f6aed3f9f1
Enable RSpec/ExpectActual cop and fix all issues
...
Always use a variable and not a literal as `expect` argument
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExpectActual
2018-01-07 01:55:38 +01:00
Bertocq
0698043340
Fix indentations
2018-01-07 01:06:07 +01:00
Bertocq
ed16a78f42
Enables RSpec/ExampleWording and fixes all issues
...
Both avoiding 'should' and repiting 'it' on the tests description
improves reading them and also makes all descriptions consistent.
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExampleWording
2018-01-07 01:03:45 +01:00
Bertocq
2253155a51
Enables RSpec/EmptyLineAfterSubject & fixes all issues
...
Read more about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyLineAfterSubject
2018-01-07 00:50:50 +01:00
Bertocq
fa017b664f
Enables RSpec/EmptyLineAfterFinalLet cop & fixes all issues
...
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyLineAfterFinalLet
2018-01-07 00:49:37 +01:00
Bertocq
265d4d0967
Enables RSpec/DescribedClass cop & fixes all issues
...
Autocorrection for existing issues, and stashing at .rubocop_todo.yml
the false positives
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribedClass
2018-01-07 00:38:19 +01:00
Bertocq
6ec6f64675
Enable RSpec/DescribeClass rubocop rspec cop & fix issues
...
Manually fixes all issues & "stashed" false positives at .rubocop_todo.yml
Read about the cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribeClass
2018-01-07 00:20:55 +01:00
Bertocq
7f14544f71
Enable Capybara/CurrentPathExpectation cop & fix issues
...
Read cop description http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/CurrentPathExpectation to better understand reasons behind enforcing this rule
On some cases the `only_path: true` was needed as argument of `have_current_path` matcher to avoid comparing the url parameters and just checking the path.
2018-01-06 23:31:41 +01:00
Bertocq
de2816a6a5
Enable RSpec/BeforeAfterAll rule and fix all issues
...
This cop tries to avoid state leaking between examples. The fixes done on the code don't follow the suggested path, since the usage of `before(:all)` was not really useful. By using RSpec's `let` method we achieve same goals but with much better and readable tests.
Check Cop description at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeforeAfterAll
2018-01-06 21:16:00 +01:00
Bertocq
2105e985a8
Fix budget investment random order feature to generate just enough elements for pagination
2018-01-06 18:21:24 +01:00
Angel Perez
6107f51b19
Add specs for valid sitemap generation ( #2219 )
2018-01-05 15:16:41 -04:00
Bertocq
d3719f0b42
Merge branch 'fix/documentable_multiple_docs'
2018-01-03 18:03:20 +01:00
Bertocq
e8570ed7bb
Fix spec link upcase to downcase for archived proposals
2018-01-03 18:03:05 +01:00