osem-fcy/spec/features
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
..
ability_spec.rb Fix commercial option for users in dashboard#show #1390 2017-04-24 10:16:39 +03:00
base_controller_spec.rb Rename 'ConferenceController' to 'ConferencesController', and 'ProposalController' to 'ProposalsController' 2016-09-30 18:49:44 -04:00
campaign_spec.rb Use a css regex matcher to find campaign entries 2016-08-22 11:23:18 +02:00
cfp_spec.rb enable style/dotposition rubocop cop 2017-04-06 23:19:58 -04:00
commercials_spec.rb Rename 'ConferenceController' to 'ConferencesController', and 'ProposalController' to 'ProposalsController' 2016-09-30 18:49:44 -04:00
conference_registration_spec.rb Modify conference registration to a singular resource 2016-07-05 01:15:32 +05:30
conference_spec.rb enable style/dotposition rubocop cop 2017-04-06 23:19:58 -04:00
contact_spec.rb enable style/dotposition rubocop cop 2017-04-06 23:19:58 -04:00
difficulty_levels_spec.rb Roles into their own controller. Rework interface. Add flash messages to ajax calls. Add description to roles. Possible to edit roles in use. 2016-03-01 17:10:45 +02:00
email_spec.rb enable style/dotposition rubocop cop 2017-04-06 23:19:58 -04:00
event_types_spec.rb Fixes Style/Tab cops 2017-04-06 10:57:44 -06:00
lodgings_spec.rb Escape HTML some factory strings 2016-05-03 16:25:07 +02:00
omniauth_spec.rb Add tests for openid signup with every provider 2017-05-06 10:37:58 +03:00
program_spec.rb enable style/dotposition rubocop cop 2017-04-06 23:19:58 -04:00
proposals_spec.rb enable style/dotposition rubocop cop 2017-04-06 23:19:58 -04:00
registration_periods_spec.rb enable style/dotposition rubocop cop 2017-04-06 23:19:58 -04:00
resource_spec.rb remove input field from admin/resource#index 2017-02-09 01:11:24 +05:30
roles_spec.rb added feature test for roles 2017-03-05 11:21:31 +05:30
rooms_spec.rb Roles into their own controller. Rework interface. Add flash messages to ajax calls. Add description to roles. Possible to edit roles in use. 2016-03-01 17:10:45 +02:00
splashpage_spec.rb Roles into their own controller. Rework interface. Add flash messages to ajax calls. Add description to roles. Possible to edit roles in use. 2016-03-01 17:10:45 +02:00
sponsor_spec.rb Use dynamic fake data in the spec 2016-05-02 16:06:32 +02:00
sponsorship_level_spec.rb Roles into their own controller. Rework interface. Add flash messages to ajax calls. Add description to roles. Possible to edit roles in use. 2016-03-01 17:10:45 +02:00
ticket_purchases_spec.rb Introduced Physical Ticket 2017-06-22 19:50:55 +05:30
tickets_spec.rb remove tickets testing ambiguity 2016-12-20 17:21:50 +05:30
tracks_spec.rb Roles into their own controller. Rework interface. Add flash messages to ajax calls. Add description to roles. Possible to edit roles in use. 2016-03-01 17:10:45 +02:00
user_spec.rb remove user deletion until further notice 2015-01-18 22:01:05 +02:00
venues_spec.rb enable style/dotposition rubocop cop 2017-04-06 23:19:58 -04:00
versions_spec.rb Fix broken test in Admin::EventsController 2017-06-26 15:35:05 +02:00
volunteers_spec.rb enable style/dotposition rubocop cop 2017-04-06 23:19:58 -04:00