Source code for the custom Mastodon (Glitchsoc) instance on berserker.town.
https://berserker.town/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
549 B
21 lines
549 B
# frozen_string_literal: true
|
|
|
|
require 'rails_helper'
|
|
|
|
describe Admin::FilterHelper do
|
|
it 'Uses filter_link_to to create filter links' do
|
|
params = ActionController::Parameters.new(
|
|
{ test: 'test' }
|
|
)
|
|
allow(helper).to receive_messages(params: params, url_for: '/test')
|
|
result = helper.filter_link_to('text', { resolved: true })
|
|
|
|
expect(result).to match(/text/)
|
|
end
|
|
|
|
it 'Uses table_link_to to create icon links' do
|
|
result = helper.table_link_to 'icon', 'text', 'path'
|
|
|
|
expect(result).to match(/text/)
|
|
end
|
|
end
|
|
|