context 'with bypass_delay set to false and privilege set to complete' do
        it 'should return the historic checkin' do
          Device.all.each { |device| update_permissions(device, 'complete', false) }
          %w(index last).each { |action| call_checkin_action(action, 1, historic_checkin) }
          params[:device_id] = second_device.id