mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-31 19:29:26 -04:00
Merge pull request #4898 from Growstuff/fix-garden-breadcrumb
Fix garden breadcrumb links that 406
This commit is contained in:
3 files changed
+6
-2
No files matched your search
@@ -4,7 +4,7 @@
|
||||
|
||||
- content_for :breadcrumbs do
|
||||
%li.breadcrumb-item= link_to 'Gardens', gardens_path
|
||||
%li.breadcrumb-item.active= link_to @garden, gardens_path(@garden)
|
||||
%li.breadcrumb-item.active= link_to @garden, garden_path(@garden)
|
||||
|
||||
.row
|
||||
.col-md-2
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
- content_for :breadcrumbs do
|
||||
%li.breadcrumb-item= link_to 'Gardens', gardens_path
|
||||
%li.breadcrumb-item.active= link_to @garden.name, gardens_path(@garden)
|
||||
%li.breadcrumb-item.active= link_to @garden.name, garden_path(@garden)
|
||||
|
||||
.garden-show.record-page
|
||||
.row
|
||||
|
||||
@@ -21,6 +21,10 @@ describe "gardens/show" do
|
||||
expect(rendered).to have_content @garden.location
|
||||
end
|
||||
|
||||
it 'links the breadcrumb to the garden itself' do
|
||||
expect(view.content_for(:breadcrumbs)).to have_link(@garden.name, href: garden_path(@garden))
|
||||
end
|
||||
|
||||
it 'shows the area' do
|
||||
expect(rendered).to have_content pluralize(@garden.area, @garden.area_unit)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user