diff options
author | Starfall <us@starfall.systems> | 2020-11-20 16:54:00 -0600 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2020-11-20 16:54:00 -0600 |
commit | 19548d0a4bc303ca8017599577e21a6d522eb7bd (patch) | |
tree | ef4ada7e8138aa510b0d54509e99ba1fc30995bc /spec/controllers/settings | |
parent | 383bb3804bdbd6caa442283cc96ef0cdbfdb4575 (diff) | |
parent | 24696458bf22c8529b49f89b2791e3e07583b7e0 (diff) |
Merge branch 'glitch' into main
Diffstat (limited to 'spec/controllers/settings')
-rw-r--r-- | spec/controllers/settings/exports/bookmarks_controller_specs.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/controllers/settings/exports/bookmarks_controller_specs.rb b/spec/controllers/settings/exports/bookmarks_controller_specs.rb new file mode 100644 index 000000000..85761577b --- /dev/null +++ b/spec/controllers/settings/exports/bookmarks_controller_specs.rb @@ -0,0 +1,17 @@ +require 'rails_helper' + +describe Settings::Exports::BookmarksController do + render_views + + describe 'GET #index' do + it 'returns a csv of the bookmarked toots' do + user = Fabricate(:user) + user.account.bookmarks.create!(status: Fabricate(:status, uri: 'https://foo.bar/statuses/1312')) + + sign_in user, scope: :user + get :index, format: :csv + + expect(response.body).to eq "https://foo.bar/statuses/1312\n" + end + end +end |