Question: I'm trying to build some unit tests for testing my Rails helpers, but I can never remember how to access them. Annoying. Suggestions?

Answer: 
This thread is kind of old, but I thought I'd reply with what I use:

```
# encoding: UTF-8

require 'spec_helper'

describe AuthHelper do

  include AuthHelper # has methods #login and #logout that modify the session

  describe "#login & #logout" do
    it "logs in & out a user" do
      user = User.new :username => "AnnOnymous"

      login user
      expect(session[:user]).to eq(user)

      logout
      expect(session[:user]).to be_nil
    end
  end

end

```
I just posted this answer on another thread asking the same question. I did the following in my project.

```
require_relative '../../app/helpers/import_helper'

```