From 3ac59d60a973ca484802684ce60cae926511bb5b Mon Sep 17 00:00:00 2001 From: Tobias Kneuker Date: Mon, 26 Sep 2022 16:42:01 +0200 Subject: [PATCH] WIP adding controller specs base --- spec/controllers/home_controller_spec.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 spec/controllers/home_controller_spec.rb diff --git a/spec/controllers/home_controller_spec.rb b/spec/controllers/home_controller_spec.rb new file mode 100644 index 00000000..86a2547c --- /dev/null +++ b/spec/controllers/home_controller_spec.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +require 'spec_helper' + +describe HomeController do + describe "GET profile" do + it 'shows dashboard for logged in user' do + get :my_profile + expect(response).to have_http_status(:success) + end + end +end