aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorXinhui2017-09-28 14:49:18 +0200
committerXinhui2017-09-28 14:54:26 +0200
commit9c64fa920c50683eb87debf8a10c223da9096b30 (patch)
tree9185c388db612e046ff2f0ecb3fff37d90f04d65 /spec
parentd4f93417331115d36880db771903446e6397a8bc (diff)
downloadchouette-core-9c64fa920c50683eb87debf8a10c223da9096b30.tar.bz2
ComplianceControls#select_type action
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/compliance_controls_controller_spec.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/controllers/compliance_controls_controller_spec.rb b/spec/controllers/compliance_controls_controller_spec.rb
index a39408ccb..d8368c3d0 100644
--- a/spec/controllers/compliance_controls_controller_spec.rb
+++ b/spec/controllers/compliance_controls_controller_spec.rb
@@ -24,7 +24,14 @@ RSpec.describe ComplianceControlsController, type: :controller do
describe 'GET #new' do
it 'should be successful' do
- get :new, compliance_control_set_id: compliance_control_set.id
+ get :new, compliance_control_set_id: compliance_control_set.id, sti_class: 'GenericAttributeControl::MinMax'
+ expect(response).to be_success
+ end
+ end
+
+ describe 'GET #select_type' do
+ it 'should be successful' do
+ get :select_type, compliance_control_set_id: compliance_control_set.id
expect(response).to be_success
end
end