controller tests create response
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user