aboutsummaryrefslogtreecommitdiffstats
path: root/spec/factories
diff options
context:
space:
mode:
authorRobert2017-11-27 10:07:30 +0100
committerRobert2017-12-14 15:34:46 +0100
commit695d6604f12515507e2e8d435370d30df5fc820d (patch)
treeafbb8919268ea2a5cd96b232d64eb7dbc108de34 /spec/factories
parent1eacdd594ec0079372c7e8d0c32d283e2a20a05c (diff)
downloadchouette-core-695d6604f12515507e2e8d435370d30df5fc820d.tar.bz2
Refs: #5006@3h;
Working out how to check for allowed lines vs. foreign lines - Implement allowed_lines as `Organisation#lines_set` - Pushed line_id related stuff into `lib/stif/codif_line_id.rb` - Related Specs
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/organisations.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/factories/organisations.rb b/spec/factories/organisations.rb
index 239557a0e..2914c30cb 100644
--- a/spec/factories/organisations.rb
+++ b/spec/factories/organisations.rb
@@ -2,5 +2,8 @@ FactoryGirl.define do
factory :organisation do
sequence(:name) { |n| "Organisation #{n}" }
sequence(:code) { |n| "000#{n}" }
+ factory :org_with_lines do
+ sso_attributes { { 'functional_scope' => %w{STIF:CODIFLIGNE:Line:C00108 STIF:CODIFLIGNE:Line:C00109}.to_json } }
+ end
end
end