Javi Martín
e2b536e8f8
Simplify adding investments to ballots in specs
2019-09-30 14:10:46 +02:00
Javi Martín
c8c8a7bc30
Simplify investment creation in specs
...
Now factories define default headings for investments, so there's no
need to create a group and a heading to create an investment.
Likewise, in order to create a heading it isn't necessary to specify a
group anymore; specifying the budget is enough.
It's possible that there are more similar cases we haven't simplified
yet; I'm only addressing the obvious ones.
2019-09-23 16:51:30 +02:00
Julian Herrero
31ac8b7f55
Change single quotes to double quotes
2019-02-15 11:40:39 +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
rgarcia
767a43bb0f
Adds DB constraint to avoid duplicate balloted investments
2017-05-03 18:43:22 +02:00
rgarcia
8083f259c2
takes into account headings without balloted investments
2017-05-03 17:49:29 +02:00
rgarcia
2f6c1bc7bc
displays the correct amount spent in review my ballot
...
returns the first heading with investments for a group
2017-05-03 17:06:27 +02:00
kikito
f5dcb51d37
Adds valid_heading validation to budget line. Renames validation methods.
2017-01-04 13:56:42 +01:00
kikito
21f396faaa
Fixes budget model specs using :selected & automatic line denormalization
2016-12-23 15:23:31 +01:00
kikito
d986702161
Activates and fixes specs in budget/ballot_spec
2016-12-15 18:19:55 +01:00
rgarcia
93bfd492d4
marks specs as pending
2016-07-27 13:27:37 +02:00
Juanjo Bazán
1a2e9b37a1
improves ballot spec
2016-06-14 14:12:50 +02:00
Juanjo Bazán
4fcf138045
refactors investment adding to ballots
2016-06-14 14:03:21 +02:00
Juanjo Bazán
b5a6828e41
adds Budget::Group model to group headings
...
many refactors through budget related models
2016-06-09 18:00:06 +02:00
kikito
4dd293f487
Adds a ballot spec for amount_available
2016-05-27 15:11:58 +02:00
Juanjo Bazán
57642075a7
adds ballot model spec
2016-05-24 13:04:12 +02:00