2022-09-26 16:42:01 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2022-09-27 09:45:28 +02:00
|
|
|
describe HomeController, type: :controller do
|
|
|
|
let(:user) { create(:user) }
|
|
|
|
|
2022-09-26 16:42:01 +02:00
|
|
|
describe "GET profile" do
|
2022-09-27 09:45:28 +02:00
|
|
|
before do
|
|
|
|
login user
|
|
|
|
end
|
|
|
|
|
2022-09-26 16:42:01 +02:00
|
|
|
it 'shows dashboard for logged in user' do
|
2022-09-27 09:45:28 +02:00
|
|
|
get :profile, params: { foodcoop: FoodsoftConfig[:default_scope] }
|
2022-09-26 16:42:01 +02:00
|
|
|
expect(response).to have_http_status(:success)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|