osem-fcy/spec/controllers/conference_controller_spec.rb

17 lines
437 B
Ruby
Raw Normal View History

require 'spec_helper'
describe ConferenceController do
2014-05-28 15:06:08 +05:30
let(:conference) { create(:conference) }
2014-05-19 21:25:42 +05:30
describe 'GET #show' do
2014-05-28 15:06:08 +05:30
it 'assigns the requested conference to conference' do
get :show, id: conference.short_title
expect(assigns(:conference)).to eq conference
end
2014-05-28 15:06:08 +05:30
it 'renders the show template' do
get :show, id: conference.short_title
expect(response).to render_template :show
end
end
end