[fix]Fix route helpers in tests

This commit is contained in:
Jimmy 2021-04-30 16:20:49 +08:00
parent e4abc009e2
commit 38bac34583
No known key found for this signature in database
GPG key ID: FAE75C760A4A5CC6
2 changed files with 2 additions and 5 deletions

View file

@ -48,7 +48,7 @@ describe FullCalendarFormatter do
start: event_schedule1.start_time,
end: event_schedule1.end_time,
resourceId: room1.guid,
url: conference_program_proposal_path(conference.short_title, event1.id),
url: Rails.application.routes.url_helpers.conference_program_proposal_path(conference.short_title, event1.id),
backgroundColor: event1.event_type.color,
textColor: 'black'
},
@ -58,7 +58,7 @@ describe FullCalendarFormatter do
start: event_schedule2.start_time,
end: event_schedule2.end_time,
resourceId: room2.guid,
url: conference_program_proposal_path(conference.short_title, event2.id),
url: Rails.application.routes.url_helpers.conference_program_proposal_path(conference.short_title, event2.id),
backgroundColor: event2.event_type.color,
textColor: 'white'
}

View file

@ -123,9 +123,6 @@ RSpec.configure do |config|
# enable debugging with --only-failures
config.example_status_persistence_file_path = 'tmp/spec_failures.txt'
# include path helpers
config.include Rails.application.routes.url_helpers
end
OmniAuth.config.test_mode = true