aboutsummaryrefslogtreecommitdiffstats
path: root/spec/views
diff options
context:
space:
mode:
authorAlban Peignier2016-05-15 09:22:06 +0200
committerAlban Peignier2016-05-15 09:22:06 +0200
commitaffbacfcd955230f66badb261dcc462cca9cd0b9 (patch)
tree5410864baa11d3e5b24671cfb8f9258aaa833e62 /spec/views
parentf5a3f0061fed4f8f51ebc0d556539a483626f76e (diff)
downloadchouette-core-affbacfcd955230f66badb261dcc462cca9cd0b9.tar.bz2
Associate LineReferential to Referential. Create ReferentialLines to manage lines in Referential. Refs #826
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/lines/new.html.erb_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/views/lines/new.html.erb_spec.rb b/spec/views/lines/new.html.erb_spec.rb
index 8b09f9ce9..ae38099d5 100644
--- a/spec/views/lines/new.html.erb_spec.rb
+++ b/spec/views/lines/new.html.erb_spec.rb
@@ -4,8 +4,8 @@ describe "/lines/new", :type => :view do
let!(:network) { create(:network) }
let!(:company) { create(:company) }
- let!(:line) { assign(:line, build(:line, :network => network, :company => company )) }
- let!(:line_referential) { assign :line_referential, line.line_referential }
+ let!(:line) { assign(:line, build(:line, :network => network, :company => company, line_referential: referential.line_referential )) }
+ let!(:line_referential) { assign :line_referential, referential.line_referential }
describe "form" do