add working home controller test and login_helper
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
3d55c68bad
commit
0dcbf16814
3 changed files with 34 additions and 2 deletions
|
|
@ -2,10 +2,16 @@
|
|||
|
||||
require 'spec_helper'
|
||||
|
||||
describe HomeController do
|
||||
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 :my_profile
|
||||
get :profile, params: { foodcoop: FoodsoftConfig[:default_scope] }
|
||||
expect(response).to have_http_status(:success)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue