foodsoft/spec/controllers/home_controller_spec.rb
viehlieb 0dcbf16814
Some checks failed
continuous-integration/drone/push Build is failing
add working home controller test and login_helper
2022-09-27 09:45:28 +02:00

18 lines
391 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
describe HomeController, type: :controller do
let(:user) { create(:user) }
describe "GET profile" do
before do
login user
end
it 'shows dashboard for logged in user' do
get :profile, params: { foodcoop: FoodsoftConfig[:default_scope] }
expect(response).to have_http_status(:success)
end
end
end