diff --git a/app/controllers/admin/tags_controller.rb b/app/controllers/admin/tags_controller.rb index 0dd52039e..4353c8ce4 100644 --- a/app/controllers/admin/tags_controller.rb +++ b/app/controllers/admin/tags_controller.rb @@ -26,6 +26,7 @@ class Admin::TagsController < Admin::BaseController end private + def tags @tags ||= Tag.category.page(params[:page]) end diff --git a/spec/models/abilities/common_spec.rb b/spec/models/abilities/common_spec.rb index 44ddb5e15..42194209a 100644 --- a/spec/models/abilities/common_spec.rb +++ b/spec/models/abilities/common_spec.rb @@ -289,7 +289,7 @@ describe Abilities::Common do before { user.update(verified_at: Time.current) } - it { should be_able_to(:vote, Proposal) } + it { should be_able_to(:vote, Proposal) } it { should be_able_to(:new, DirectMessage) } it { should be_able_to(:create, DirectMessage) } diff --git a/spec/system/legislation/processes_spec.rb b/spec/system/legislation/processes_spec.rb index 7304fc543..406cec2cf 100644 --- a/spec/system/legislation/processes_spec.rb +++ b/spec/system/legislation/processes_spec.rb @@ -254,7 +254,7 @@ describe "Legislation" do expect(page).to have_content("Homepage") end - expect(page).to have_content("This is the process homepage") + expect(page).to have_content("This is the process homepage") end scenario "disabled", :with_frozen_time do @@ -280,7 +280,7 @@ describe "Legislation" do visit legislation_process_path(process) - expect(page).to have_content("This phase is not open yet") + expect(page).to have_content("This phase is not open yet") end scenario "open without questions" do