1
0

shares_controller_spec.rb 472 B

12345678910111213141516171819
  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