1
0

shares_controller_spec.rb 504 B

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