Files
nairobi/spec/features
Javi Martín facfb807e1 Show all investments in the map
We were showing only the ones being shown in the current page because
we were modifying `@investments` using a method which used
`@investments`, and we were calling that method twice.

There are many possible solutions: using a local variable to store the
result of the `investments` method, modifying `@investments` after
modifying `@investments_map_coordinates`, ... I've used the one which in
my humble opinion is a bit less fragile: not using `@investments` inside
the `investments` method. That way, the `investments` method will always
return the same result.

Note `stub_const("Budgets::InvestmentsController::PER_PAGE", 2)`
wouldn't work because `Budgets::InvestmentsController` isn't loaded when
that line is executed. So we need to load it. Instead of requiring the
file, using `#{Budgets::InvestmentsController}` seems to be an easier
solution.
2019-02-19 13:22:49 +01:00
..
2019-02-19 13:22:49 +01:00
2019-02-08 11:56:49 +01:00
2019-02-08 14:28:19 +01:00
2019-02-08 14:28:19 +01:00
2019-01-02 10:46:31 +01:00
2018-07-12 10:17:25 -04:00
2015-09-13 11:47:57 +02:00
2018-12-10 12:59:03 +01:00
2018-12-15 12:33:28 +01:00
2019-01-14 18:48:31 +01:00
2016-02-08 17:49:03 +01:00
2018-12-15 12:33:28 +01:00
2018-07-15 13:58:32 +02:00
2018-05-22 15:41:10 +02:00