aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/compliance_check_sets/index.html.slim2
-rw-r--r--spec/controllers/compliance_check_sets_controller_spec.rb6
2 files changed, 3 insertions, 5 deletions
diff --git a/app/views/compliance_check_sets/index.html.slim b/app/views/compliance_check_sets/index.html.slim
index cad20172b..e33905fce 100644
--- a/app/views/compliance_check_sets/index.html.slim
+++ b/app/views/compliance_check_sets/index.html.slim
@@ -40,7 +40,7 @@
), \
TableBuilderHelper::Column.new(\
key: :control_game, \
- attribute: 'control_game' \
+ attribute: Proc.new{ |n| (n.compliance_control_set.name) if n.compliance_control_set} \
), \
],
sortable: true,
diff --git a/spec/controllers/compliance_check_sets_controller_spec.rb b/spec/controllers/compliance_check_sets_controller_spec.rb
index 5f5cea82f..804b0a658 100644
--- a/spec/controllers/compliance_check_sets_controller_spec.rb
+++ b/spec/controllers/compliance_check_sets_controller_spec.rb
@@ -5,18 +5,16 @@ RSpec.describe ComplianceCheckSetsController, type: :controller do
let(:compliance_check_set) { create :compliance_check_set }
- workbench_compliance_check_sets_path(current_offer_workbench)
-
describe "GET show" do
it 'should be successful' do
- get :show, id: compliance_check_set.id
+ get :show, workbench_id: compliance_check_set.workbench.id, id: compliance_check_set.id
expect(response).to be_success
end
end
describe "GET index" do
it 'should be successful' do
- get :index, id: compliance_check_set.id
+ get :index, workbench_id: compliance_check_set.workbench.id, id: compliance_check_set.id
expect(response).to be_success
end
end