[fix]Fix route helpers in tests
This commit is contained in:
parent
e4abc009e2
commit
38bac34583
2 changed files with 2 additions and 5 deletions
|
|
@ -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'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue