Commit Graph

14 Commits

Author SHA1 Message Date
Javi Martín
db97f9d08c Add and apply rubocop rules for empty lines
We were very inconsistent regarding these rules.

Personally I prefer no empty lines around blocks, clases, etc... as
recommended by the Ruby style guide [1], and they're the default values
in rubocop, so those are the settings I'm applying.

The exception is the `private` access modifier, since we were leaving
empty lines around it most of the time. That's the default rubocop rule
as well. Personally I don't have a strong preference about this one.


[1] https://rubystyle.guide/#empty-lines-around-bodies
2019-10-24 17:11:47 +02:00
Javi Martín
818b442d52 Simplify creating voters in specs 2019-09-30 00:36:40 +02:00
Javi Martín
71d9ddd849 Apply rule to end files with a newline character 2019-09-10 20:02:15 +02:00
Javi Martín
307cf24846 Use describe on feature tests
The `type: :feature` is automatically detected by RSpec because these
tests are inside the `spec/features` folder. Using `feature` re-adds a
`type: :feature` to these files, which will result in a conflict when we
upgrade to Rails 5.1's system tests.

Because of this change, we also need to change `background` to `before`
or else these tests will fail.
2019-05-28 16:36:54 +02:00
Julian Herrero
31ac8b7f55 Change single quotes to double quotes 2019-02-15 11:40:39 +01:00
Juanjo Bazán
3e0dd544a6 adds specs 2016-02-08 17:49:03 +01:00
Juanjo Bazán
3a51145bc9 moves existent stats specs to admin namespace 2016-02-08 14:16:06 +01:00
kikito
2bfd012369 fixes some random test failures 2015-10-23 12:49:51 +02:00
Juanjo Bazán
b9275f1ddd fixes build 2015-10-03 13:12:15 +02:00
Alberto Garcia Cabeza
b5a85b2040 Changes tests 2015-09-28 16:17:40 +02:00
rgarcia
2cc02ff41d adds specs 2015-09-26 13:08:38 +02:00
Juanjo Bazán
8c99c6a5f0 refactors stats and optimizes js
JS libraries for stats (d3, c3, etc.) only load now when needed (stats/show)
2015-09-23 19:37:24 +02:00
rgarcia
289389d09e removes spec focus [#399] 2015-09-10 11:13:54 +02:00
rgarcia
e1d708dc1f adds specs for tracking level 2 users 2015-09-10 11:03:59 +02:00