-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #177 from hpi-swt2/layout-fixes
Move chat to new page, remove second navbar
- Loading branch information
Showing
6 changed files
with
45 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<%= stylesheet_link_tag 'home', media: 'all', 'data-turbolinks-track': 'reload' %> | ||
<%= stylesheet_link_tag 'home_mobile', media: 'all', 'data-turbolinks-track': 'reload' %> | ||
<%= render 'chat' %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,6 @@ | |
|
||
resources :activities, only: :create | ||
resources :jitsi_calls, only: :create | ||
|
||
get 'chat', to: 'home#chat' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
require 'rails_helper' | ||
|
||
RSpec.describe 'Chat', type: :request do | ||
let(:user) { FactoryBot.create :user } | ||
|
||
describe 'GET chat/' do | ||
context 'when signed in' do | ||
it 'returns http success' do | ||
sign_in user | ||
get chat_path | ||
expect(response).to have_http_status(:success) | ||
end | ||
end | ||
|
||
context 'when not signed in' do | ||
it 'returns http success' do | ||
get chat_path | ||
expect(response).to have_http_status(:success) | ||
end | ||
end | ||
end | ||
end |