osem-fcy/spec/controllers
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
..
admin Fix broken test in Admin::EventsController 2017-06-26 15:35:05 +02:00
api/v1 implement manual event management and support for multiple speakers per event 2017-04-13 17:15:21 +03:00
application_controller_spec.rb Rename 'ConferenceController' to 'ConferencesController', and 'ProposalController' to 'ProposalsController' 2016-09-30 18:49:44 -04:00
conference_registration_controller_spec.rb Test ConferenceRegistration#new behaviour 2017-05-13 17:47:22 +03:00
conferences_controller_spec.rb Rename 'ConferenceController' to 'ConferencesController', and 'ProposalController' to 'ProposalsController' 2016-09-30 18:49:44 -04:00
confirmations_controller_spec.rb Add devise confirmation controller test 2016-04-07 17:34:23 +05:30
organizations_controller_spec.rb suggested changes 2017-06-12 19:43:44 +05:30
proposals_controller_spec.rb implement manual event management and support for multiple speakers per event 2017-04-13 17:15:21 +03:00
schedules_controller_spec.rb Test namings 2016-08-11 15:11:27 +02:00
subscriptions_controller_spec.rb move subscribe to its own controller, add authorization, test subscribe/unsubscribe 2014-11-12 14:00:17 +02:00
users_controller_spec.rb Add controller test for users#show 2016-03-11 23:13:52 +02:00