File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ def add_note(text)
107107 'user_viewable' => false ,
108108 'popup_note' => false ,
109109 'created_by' => 'Framework' ,
110- 'created_date' => Time . zone . now . strftime ( '%Y-%m-%dT%H:%M:00Z' ) ,
110+ 'created_date' => Time . now . utc . strftime ( '%Y-%m-%dT%H:%M:00Z' ) ,
111111 'segment_type' => 'Internal'
112112 }
113113 user_obj [ 'user_note' ] . push ( new_note )
Original file line number Diff line number Diff line change 88 include_context 'ssh'
99 let ( :job ) { described_class }
1010 let ( :alma_api_key ) { 'totally-fake-key' }
11- let ( :today ) { Time . now . strftime ( '%Y%m%d' ) }
11+ let ( :today ) { Time . now . utc . strftime ( '%Y%m%d' ) }
1212 let ( :expected_note ) { "#{ today } #{ note_text } [litscript]" }
1313
1414 attr_reader :patron
5757
5858 before do
5959 allow ( Rails . application . config ) . to receive ( :alma_api_key ) . and_return ( alma_api_key )
60-
6160 stub_patron_dump ( patron_id )
6261 @patron = Alma ::User . find ( patron_id )
6362 end
6463
6564 describe 'success' do
66- let ( :today ) { Time . now . strftime ( '%Y%m%d' ) }
65+ let ( :today ) { Time . now . utc . strftime ( '%Y%m%d' ) }
6766 let ( :expected_note ) { "#{ today } #{ note_text } [litscript]" }
6867
6968 it 'adds the expected note' do # rubocop:disable RSpec/NoExpectationExample
You can’t perform that action at this time.
0 commit comments