osem-fcy/spec/controllers/admin
Ana María Martínez Gómez 905f8954d0 Fix broken test in Admin::EventsController
We are using `paper_trail` gem, which saves data in database table
versions. It has a native way to search in the versions records,
using `where_object()` and `where_object_changes()`. They are broken,
under certain conditions. We changed them to a manual `where()`.

To test this case we need: an Event with ID 1, an Event with ID 2, and
a commercial with ID 1, for event with ID 2 - obviously the numbers
could be different as long as there is this matching of IDs. Before
this was made wit ha expect, which would make the test fail if this is
not the case. But this is actually the test case, not what we want to
test, so I moved to the `let`.

This was also the case why one of the test was broken after we change
how the database is cleaned in:

https://github.com/openSUSE/osem/pull/1541

I also remove the feature test, as this should be tested in a
controller test.
2017-06-26 15:35:05 +02:00
..
comments_controller_spec.rb Remove assumption from test that first user is admin 2016-03-14 17:29:35 +05:30
conferences_controller_spec.rb enable style/dotposition rubocop cop 2017-04-06 23:19:58 -04:00
event_schedules_controller_spec.rb Added validation in EventSchedule model and test in event_schedule_spec 2017-04-22 01:20:05 +05:30
events_controller_spec.rb Fix broken test in Admin::EventsController 2017-06-26 15:35:05 +02:00
organizations_controller_spec.rb fix failing test 2017-06-12 19:43:44 +05:30
programs_controller_spec.rb Remove assumption from test that first user is admin 2016-03-14 17:29:35 +05:30
registration_periods_controller_spec.rb Remove assumption from test that first user is admin 2016-03-14 17:29:35 +05:30
roles_controller_spec.rb Remove assumption from test that first user is admin 2016-03-14 17:29:35 +05:30
rooms_controller_spec.rb Tests for room controller 2016-03-07 19:19:48 +05:30
schedules_controller_spec.rb Event schedules controller tests improved 2016-08-11 15:11:27 +02:00
sponsorship_levels_controller_spec.rb Add sponsership levels controller tests 2016-03-22 18:17:14 +05:30
targets_controller_spec.rb Tests for Admin::Targets controller 2016-03-06 10:46:04 +05:30
users_controller_spec.rb implement user creation by admin 2017-05-08 22:54:02 +03:00
versions_controller_spec.rb Setup basic Revision History page 2016-08-12 13:35:56 +05:30