forked from TheEssem/mastodon
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65d9171
commit d3b637c
Showing
3 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe 'Admin Export Domain Allows' do | ||
describe 'POST /admin/export_domain_allows/import' do | ||
before { sign_in Fabricate(:admin_user) } | ||
|
||
it 'gracefully handles invalid nested params' do | ||
post import_admin_export_domain_allows_path(admin_import: 'invalid') | ||
|
||
expect(response) | ||
.to redirect_to(admin_instances_path) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'rails_helper' | ||
|
||
RSpec.describe 'Admin Export Domain Blocks' do | ||
describe 'POST /admin/export_domain_blocks/import' do | ||
before { sign_in Fabricate(:admin_user) } | ||
|
||
it 'gracefully handles invalid nested params' do | ||
post import_admin_export_domain_blocks_path(admin_import: 'invalid') | ||
|
||
expect(response.body) | ||
.to include(I18n.t('admin.export_domain_blocks.no_file')) | ||
end | ||
end | ||
end |