闭社主体 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.

19 lines
472 B

  1. require 'rails_helper'
  2. describe SharesController do
  3. render_views
  4. let(:user) { Fabricate(:user) }
  5. before { sign_in user }
  6. describe 'GTE #show' do
  7. subject(:body_classes) { assigns(:body_classes) }
  8. before { get :show, params: { title: 'test title', text: 'test text', url: 'url1 url2' } }
  9. it 'returns http success' do
  10. expect(response).to have_http_status :ok
  11. expect(body_classes).to eq 'modal-layout compose-standalone'
  12. end
  13. end
  14. end