-
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.
- Loading branch information
1 parent
27500a4
commit 149a8be
Showing
8 changed files
with
76 additions
and
38 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
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,11 +1,17 @@ | ||
<span class="flex overflow-x-auto gap-1"> | ||
<% if @search_by_title.present? %> | ||
<%= render 'spaces/index/filter_capsule', title: @search_by_title, id_to_clear: 'search_for_title' %> | ||
<%= render 'spaces/index/filter_capsule', | ||
title: @search_by_title, | ||
id_to_clear: 'search_for_title' %> | ||
<% end %> | ||
<% @filtered_facilities&.each do |facility| %> | ||
<%= render 'spaces/index/filter_capsule', title: facility.title, id_to_clear: "facilities_#{facility.id}" %> | ||
<%= render 'spaces/index/filter_capsule', | ||
title: facility.title, | ||
id_to_clear: "facilities_#{facility.id}" %> | ||
<% end %> | ||
<% @filtered_space_types&.each do |space_type| %> | ||
<%= render 'spaces/index/filter_capsule', title: space_type.title, id_to_clear: "space_types_#{space_type.id}" %> | ||
<%= render 'spaces/index/filter_capsule', | ||
title: space_type.type_name, | ||
id_to_clear: "space_types_#{space_type.id}" %> | ||
<% end %> | ||
</span> |
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,18 @@ | ||
# frozen_string_literal: true | ||
|
||
require "rails_helper" | ||
|
||
RSpec.describe "Spaces", type: :request do | ||
let(:user) { Fabricate(:user) } | ||
|
||
before do | ||
sign_in user | ||
end | ||
|
||
describe "GET /" do | ||
it "loads the index page" do | ||
get spaces_path | ||
expect(response).to have_http_status(:success) | ||
end | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.