You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/spec/system/admin/terms_of_service/histories_spec.rb

22 lines
574 B
Ruby

# frozen_string_literal: true
require 'rails_helper'
RSpec.describe 'Admin Terms of Service Histories' do
let(:current_user) { Fabricate(:admin_user) }
before { sign_in(current_user) }
describe 'Viewing TOS histories' do
before { Fabricate :terms_of_service, changelog: 'The changelog notes from v1 are here' }
it 'shows previous terms versions' do
visit admin_terms_of_service_history_path
expect(page)
.to have_content(I18n.t('admin.terms_of_service.history'))
.and have_content(/changelog notes from v1/)
end
end
end