Added test for RootRouteConstraint and conferences#current

This commit is contained in:
divyanshumehta 2017-03-19 09:17:31 +05:30
parent 529b8eb710
commit ee7684d845
5 changed files with 60 additions and 5 deletions

View file

@ -26,6 +26,13 @@ describe ConferencesController do
end
end
describe 'GET #current' do
it 'redirects to first conference splashpage' do
get :current
expect(response).to redirect_to(conference_path(Conference.first.short_title))
end
end
describe 'OPTIONS #index' do
it 'Response code is 200' do
process :index, 'OPTIONS'