Set up /settings/keyword_mutes. #164.
This should eventually be accessible via the API and the web frontend, but I find it easier to set up an editing interface using Rails templates and the like. We can always take it out if it turns out we don't need it.local
parent
b4b657eb1d
commit
4fa2f7e82d
8 changed files with 34 additions and 0 deletions
@ -0,0 +1,7 @@ |
||||
# frozen_string_literal: true |
||||
|
||||
class Settings::KeywordMutesController < ApplicationController |
||||
layout 'admin' |
||||
|
||||
before_action :authenticate_user! |
||||
end |
@ -0,0 +1,2 @@ |
||||
module Settings::KeywordMutesHelper |
||||
end |
@ -0,0 +1,2 @@ |
||||
- content_for :page_title do |
||||
= t('settings.keyword_mutes') |
@ -0,0 +1,5 @@ |
||||
require 'rails_helper' |
||||
|
||||
RSpec.describe Settings::KeywordMutesController, type: :controller do |
||||
|
||||
end |
@ -0,0 +1,15 @@ |
||||
require 'rails_helper' |
||||
|
||||
# Specs in this file have access to a helper object that includes |
||||
# the Settings::KeywordMutesHelper. For example: |
||||
# |
||||
# describe Settings::KeywordMutesHelper do |
||||
# describe "string concat" do |
||||
# it "concats two strings with spaces" do |
||||
# expect(helper.concat_strings("this","that")).to eq("this that") |
||||
# end |
||||
# end |
||||
# end |
||||
RSpec.describe Settings::KeywordMutesHelper, type: :helper do |
||||
pending "add some examples to (or delete) #{__FILE__}" |
||||
end |
Loading…
Reference in new issue