Skip to content

Commit

Permalink
added dashboard spec
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalhankins committed Aug 15, 2024
1 parent 1094349 commit 6c19d3f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
15 changes: 15 additions & 0 deletions spec/requests/dashboard_request_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require "rails_helper"

RSpec.describe "DashboardController" do
describe "GET /" do
before { get "/" }

it_behaves_like "a page with footer content"
end

describe "GET /dashboard" do
before { get "/dashboard" }

it_behaves_like "a page with footer content"
end
end
12 changes: 0 additions & 12 deletions spec/requests/sessions_request_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,4 @@
expect(response).to have_http_status(:redirect)
expect(response).to redirect_to("/dashboard")
end

describe "GET /" do
before { get "/" }

it_behaves_like "a page with footer content"
end

describe "GET /dashboard" do
before { get "/dashboard" }

it_behaves_like "a page with footer content"
end
end

0 comments on commit 6c19d3f

Please sign in to comment.