aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorGuillaume2017-09-25 18:19:21 +0200
committerGuillaume2017-09-25 18:19:21 +0200
commit82f611cd417d7e3a98f4fa7d21e2f94e6bc9a011 (patch)
tree9383afa60f3430930cc0ac1ba669d0b52af7f548 /spec
parent2fa5b41379f33b399121dca1149dd7b20cf6d00d (diff)
downloadchouette-core-82f611cd417d7e3a98f4fa7d21e2f94e6bc9a011.tar.bz2
add compliance_check_sets structure Refs #3564
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/compliance_check_sets_controller_spec.rb24
-rw-r--r--spec/decorators/compliance_check_set_decorator_spec.rb4
-rw-r--r--spec/helpers/compliance_check_set_helper_spec.rb15
3 files changed, 43 insertions, 0 deletions
diff --git a/spec/controllers/compliance_check_sets_controller_spec.rb b/spec/controllers/compliance_check_sets_controller_spec.rb
new file mode 100644
index 000000000..5f5cea82f
--- /dev/null
+++ b/spec/controllers/compliance_check_sets_controller_spec.rb
@@ -0,0 +1,24 @@
+require 'rails_helper'
+
+RSpec.describe ComplianceCheckSetsController, type: :controller do
+ login_user
+
+ 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
+ expect(response).to be_success
+ end
+ end
+
+ describe "GET index" do
+ it 'should be successful' do
+ get :index, id: compliance_check_set.id
+ expect(response).to be_success
+ end
+ end
+
+end
diff --git a/spec/decorators/compliance_check_set_decorator_spec.rb b/spec/decorators/compliance_check_set_decorator_spec.rb
new file mode 100644
index 000000000..d1252f509
--- /dev/null
+++ b/spec/decorators/compliance_check_set_decorator_spec.rb
@@ -0,0 +1,4 @@
+require 'spec_helper'
+
+describe ComplianceCheckSetDecorator do
+end
diff --git a/spec/helpers/compliance_check_set_helper_spec.rb b/spec/helpers/compliance_check_set_helper_spec.rb
new file mode 100644
index 000000000..675ab872d
--- /dev/null
+++ b/spec/helpers/compliance_check_set_helper_spec.rb
@@ -0,0 +1,15 @@
+require 'rails_helper'
+
+# Specs in this file have access to a helper object that includes
+# the ComplianceCheckSetHelper. For example:
+#
+# describe ComplianceCheckSetHelper do
+# describe "string concat" do
+# it "concats two strings with spaces" do
+# expect(helper.concat_strings("this","that")).to eq("this that")
+# end
+# end
+# end
+RSpec.describe ComplianceCheckSetHelper, type: :helper do
+ pending "add some examples to (or delete) #{__FILE__}"
+end