donphan/spec/controllers/about_controller_spec.rb

20 lines
386 B
Ruby
Raw Normal View History

2016-09-27 22:12:33 +01:00
require 'rails_helper'
RSpec.describe AboutController, type: :controller do
render_views
2016-09-27 22:12:33 +01:00
describe 'GET #index' do
it 'returns http success' do
2016-09-27 22:12:33 +01:00
get :index
expect(response).to have_http_status(:success)
end
end
describe 'GET #terms' do
it 'returns http success' do
get :terms
expect(response).to have_http_status(:success)
end
end
2016-09-27 22:12:33 +01:00
end