You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: items_controller_test.rb
    path of file: ./repos/ekylibre/test/controllers/backend/bank_reconciliation
    
    the code of the file until where you have to start completion: require 'test_helper'

# Tests if the whole period_start/end system works.
module ReconciliationPeriodTest
  extend ActiveSupport::Concern

  included do
    test 'period is set by default to Â±20 days' do
      get :index, params: { bank_statement_id: @bank_statement.id }
      assert_equal @now.to_date - 25.days, ivar_value(:@perio
    
        def entry_setup(amount: 0, journal: nil, ext_account: nil, bank_account: nil, date: Time.zone.today)
          JournalEntry.create!(journal: journal, currency: 'EUR', printed_on: date,
                               items_attributes: {
                                 '0' => {
                                   name: 'Test',
                                   real_debit: amount,
                                   account_id: ext_account.id
                                 },
                                 '-1' => {
                                   name: 'Testbis',
                                   real_credit: amount,
                                   account_id: bank_account.id
                                 }
                               })
        end