aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lib
diff options
context:
space:
mode:
authorAlban Peignier2017-12-20 09:41:53 +0100
committerAlban Peignier2017-12-20 09:42:07 +0100
commit38ab26f1ea40b7ab5774ff0c18fba54204767b88 (patch)
tree6cac0527da202aae01664e8cda4e5c4649164add /spec/lib
parent023fdab6840c7bb2d87d8ffee2df478574158d6e (diff)
parent0a5c1fd25403c327593a5cbe10c7c58be6128c89 (diff)
downloadchouette-core-38ab26f1ea40b7ab5774ff0c18fba54204767b88.tar.bz2
Merge branch 'master' into 5333-add-policies-for-referentials-sharing5333-add-policies-for-referentials-sharing
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/stif/permission_translator_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/lib/stif/permission_translator_spec.rb b/spec/lib/stif/permission_translator_spec.rb
index 04fc1c6f3..9771af187 100644
--- a/spec/lib/stif/permission_translator_spec.rb
+++ b/spec/lib/stif/permission_translator_spec.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
RSpec.describe Stif::PermissionTranslator do
context "No SSO Permissions" do
@@ -46,13 +47,13 @@ RSpec.describe Stif::PermissionTranslator do
context "For the STIF organisation" do
let(:organisation){ build_stubbed :organisation, name: "STIF" }
let(:permissions){ %w{calendars.share stop_area_referentials.synchronize line_referentials.synchronize}.sort }
- it "adds the calendars.share permission" do
+ it "adds the STIF permission" do
expect(described_class.translate([], organisation).sort).to eq permissions
end
context "with the case changed" do
let(:organisation){ build_stubbed :organisation, name: "StiF" }
- it "adds the calendars.share permission" do
+ it "adds the STIF permission" do
expect(described_class.translate([], organisation).sort).to eq permissions
end
end