aboutsummaryrefslogtreecommitdiffstats
path: root/spec/views
diff options
context:
space:
mode:
authorZog2017-12-15 17:54:31 +0100
committerZog2017-12-19 14:21:52 +0100
commit3a78b0d44affe79ec297f1a25ee3cfe4ecd32a74 (patch)
treede6b3e6a258a7cadb83a97f019f67576738522a5 /spec/views
parent74a601f6f35e0a547d3cde0501081e6e9f509959 (diff)
downloadchouette-core-3a78b0d44affe79ec297f1a25ee3cfe4ecd32a74.tar.bz2
Refs: #5291@1h; Update TableBuilderHelper
Update TableBuilderHelper to allow the `selectable` param to be a lambda, thus allowing us to have row-based granularity.
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/offer_workbenches/show.html.erb_spec.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/spec/views/offer_workbenches/show.html.erb_spec.rb b/spec/views/offer_workbenches/show.html.erb_spec.rb
index 597335166..44dfe88f1 100644
--- a/spec/views/offer_workbenches/show.html.erb_spec.rb
+++ b/spec/views/offer_workbenches/show.html.erb_spec.rb
@@ -7,7 +7,6 @@ describe "workbenches/show", :type => :view do
create :line, objectid: id, line_referential: workbench.line_referential
end
}
-
let!(:workbench){ assign :workbench, create(:workbench) }
let!(:same_organisation_referential){ create :workbench_referential, workbench: workbench, metadatas: [create(:referential_metadata, lines: lines)] }
let!(:different_organisation_referential){ create :workbench_referential, metadatas: [create(:referential_metadata, lines: lines)] }
@@ -17,7 +16,6 @@ describe "workbenches/show", :type => :view do
}
let!(:q) { assign :q_for_form, Ransack::Search.new(Referential) }
before :each do
-
lines
controller.request.path_parameters[:id] = workbench.id
expect(workbench.referentials).to include same_organisation_referential