Sha256: bf789b584017c174a6697ce83e3dde582cdc83906d011b11a0ba7891a767021f
Contents?: true
Size: 1.27 KB
Versions: 3
Compression:
Stored size: 1.27 KB
Contents
require 'rails_helper' describe ManifestationsController do fixtures :all def valid_attributes FactoryBot.attributes_for(:manifestation) end describe 'GET index', solr: true do before do Manifestation.reindex end describe 'When not logged in' do it 'should get tag_cloud' do get :index, params: { query: '2005', view: 'tag_cloud' } expect(response).to be_successful expect(response).to render_template('manifestations/_tag_cloud') end end describe 'When not logged in' do it 'should show manifestation with tag_edit' do get :show, params: { id: 1, mode: 'tag_edit' } expect(response).to render_template('manifestations/_tag_edit') expect(response).to be_successful end it 'should show manifestation with tag_list' do get :show, params: { id: 1, mode: 'tag_list' } expect(response).to render_template('manifestations/_tag_list') expect(response).to be_successful end end end describe 'GET edit' do describe 'When logged in as User' do login_fixture_user it 'should edit manifestation with tag_edit' do get :edit, params: { id: 1, mode: 'tag_edit' } expect(response).to be_successful end end end end
Version data entries
3 entries across 3 versions & 1 rubygems