闭社主体 forked from https://github.com/tootsuite/mastodon
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.

17 lines
453 B

  1. require 'rails_helper'
  2. describe Settings::Exports::BookmarksController do
  3. render_views
  4. describe 'GET #index' do
  5. it 'returns a csv of the bookmarked toots' do
  6. user = Fabricate(:user)
  7. user.account.bookmarks.create!(status: Fabricate(:status, uri: 'https://foo.bar/statuses/1312'))
  8. sign_in user, scope: :user
  9. get :index, format: :csv
  10. expect(response.body).to eq "https://foo.bar/statuses/1312\n"
  11. end
  12. end
  13. end