1
0
mirror of synced 2026-08-05 22:56:55 +00:00

controller tests create response

This commit is contained in:
Rimian Perkins
2017-02-15 11:40:00 +11:00
parent 35f9e4ffb2
commit 46a13af63a
5 changed files with 26 additions and 38 deletions
@@ -1,9 +1,12 @@
require 'rails_helper'
module Choice
RSpec.describe 'ChoiceController', type: :controller do
it do
expect(Choice::ChoiceController).to be_truthy
RSpec.describe ChoiceController, type: :controller do
routes { Choice::Engine.routes }
it 'responds with ok' do
post :create
expect(response).to have_http_status(200)
end
end
end