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