Merge pull request #169 from gopesht/fix_controller_test_for_splash
Controller test for Conference#show
This commit is contained in:
commit
c6f2b4f641
1 changed files with 9 additions and 4 deletions
|
|
@ -1,11 +1,16 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe ConferenceController do
|
describe ConferenceController do
|
||||||
|
let(:conference) { create(:conference) }
|
||||||
describe 'GET #show' do
|
describe 'GET #show' do
|
||||||
it 'returns http success' do
|
it 'assigns the requested conference to conference' do
|
||||||
get :show, id: 'sample'
|
get :show, id: conference.short_title
|
||||||
expect(response).to be_success
|
expect(assigns(:conference)).to eq conference
|
||||||
|
end
|
||||||
|
|
||||||
|
it 'renders the show template' do
|
||||||
|
get :show, id: conference.short_title
|
||||||
|
expect(response).to render_template :show
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue