aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorcedricnjanga2017-11-20 18:20:24 +0100
committercedricnjanga2017-11-20 18:20:24 +0100
commit80bfa87237b78e426e4362a503fe4d72e130beb5 (patch)
tree6a6391d64214bbdf792684432173a433e3c37cec /spec
parent400fd17ac6cfa612d0ca634fe1f5107a91908783 (diff)
downloadchouette-core-80bfa87237b78e426e4362a503fe4d72e130beb5.tar.bz2
Rearrange policies and decorators folders to include them after renaming class names on several models
Diffstat (limited to 'spec')
-rw-r--r--spec/factories/chouette_lines.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/factories/chouette_lines.rb b/spec/factories/chouette_lines.rb
index fb15e12de..f6542bf82 100644
--- a/spec/factories/chouette_lines.rb
+++ b/spec/factories/chouette_lines.rb
@@ -8,7 +8,10 @@ FactoryGirl.define do
association :network, :factory => :network
association :company, :factory => :company
- association :line_referential, :factory => :line_referential
+
+ before(:create) do |line|
+ line.line_referential ||= LineReferential.find_by! name: "first"
+ end
sequence(:registration_number) { |n| "test-#{n}" }