I'm very new to Ruby and and RSpec. I would like to create basic Spec file for this module:
module DownloadAttemptsHelper
  def download_attempt_filter_select_options
    search_types = [
      [I18n.t("helpers.download_attempts.search_types_default"),          'default'          ],
      [I18n.t("helpers.download_attempts.search_types_account_id"),      'account_id'      ],
      [I18n.t("helpers.download_attempts.search_types_remote_ip"),        'remote_ip'        ],
    ]
    options_for_select(search_types)
  end
end
Small test
describe DownloadAttemptsHelper do
  it "does something" do
    expect(1).to be_odd
  end
end
I get:
`<top (required)>': uninitialized constant DownloadAttemptsHelper (NameError)
Do I need to import the directory path and module name? Can you give me some very basic example how I can test this module?
 
     
     
    