-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Connect carousel last indicator and network display items chang…
…ed (#258) * Last carousel indicator shows the network last card * The Network displayed now are 10 and are random * Fixed the display position of the last indicator for small desktop screens.
- Loading branch information
Showing
9 changed files
with
65 additions
and
5 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
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
.gc-carousel-indicators { | ||
position: relative; | ||
bottom: 0; | ||
top: 53px; | ||
|
||
|
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
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,36 @@ | ||
require 'rails_helper' | ||
|
||
RSpec.describe StaticPagesController, type: :controller do | ||
describe 'GET #home' do | ||
def perform_request | ||
get :home | ||
end | ||
|
||
let(:counts) do | ||
{ 0 => 20, 1 => 20, 3 => 20, 4 => 20 } | ||
end | ||
|
||
before do | ||
20.times do | ||
create(:network) | ||
create(:book) | ||
create(:article) | ||
create(:url) | ||
create(:audio) | ||
end | ||
perform_request | ||
end | ||
|
||
it 'responds with success' do | ||
expect(response).to be_success | ||
end | ||
|
||
it 'assigns 10 random networks' do | ||
expect(assigns(:networks).count).to eq(10) | ||
end | ||
|
||
it 'assigns resource count by resource type' do | ||
expect(assigns(:counts)).to eq(counts) | ||
end | ||
end | ||
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
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