foodsoft/spec/controllers/home_controller_spec.rb

19 lines
391 B
Ruby
Raw Normal View History

2022-09-26 16:42:01 +02:00
# frozen_string_literal: true
require 'spec_helper'
describe HomeController, type: :controller do
let(:user) { create(:user) }
2022-09-26 16:42:01 +02:00
describe "GET profile" do
before do
login user
end
2022-09-26 16:42:01 +02:00
it 'shows dashboard for logged in user' do
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