aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/referential.rb
diff options
context:
space:
mode:
authorcedricnjanga2018-02-20 15:09:20 -0800
committercedricnjanga2018-02-20 15:09:20 -0800
commit04f26371e23a116cc7be22bd694010820d469e0c (patch)
treeeec614bc3266b4081667f739515f9b91fee378bf /spec/support/referential.rb
parent8e751acfb400978d45ae78e937e5401a4d118b5d (diff)
downloadchouette-core-04f26371e23a116cc7be22bd694010820d469e0c.tar.bz2
Refs #5609 Change slug format
Diffstat (limited to 'spec/support/referential.rb')
-rw-r--r--spec/support/referential.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/referential.rb b/spec/support/referential.rb
index 9acdce73a..19590191a 100644
--- a/spec/support/referential.rb
+++ b/spec/support/referential.rb
@@ -1,7 +1,7 @@
module ReferentialHelper
def first_referential
- Referential.find_by!(:slug => "first")
+ Referential.find_by!(:name => "first")
end
def first_organisation
@@ -64,7 +64,7 @@ RSpec.configure do |config|
:referential,
prefix: "first",
name: "first",
- slug: "first",
+ slug: "first_#{Time.now.to_i}",
organisation: organisation,
workbench: workbench,
objectid_format: "stif_netex"