require "spec_helper" describe LsOmniauth::OmniauthHelper, type: :helper do describe "require_authentication" do context "a user is logged in" do it "returns true" do LsOmniauth::AuthSessions.new(session).auth.set('user@domain.com') expect(require_authentication).to eq(true) end end end end