aboutsummaryrefslogtreecommitdiffstats
path: root/spec/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/table_builder_helper_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/helpers/table_builder_helper_spec.rb b/spec/helpers/table_builder_helper_spec.rb
index 6d7b60366..6b505c940 100644
--- a/spec/helpers/table_builder_helper_spec.rb
+++ b/spec/helpers/table_builder_helper_spec.rb
@@ -193,6 +193,7 @@ describe TableBuilderHelper, type: :helper do
companies,
with: CompanyDecorator
)
+ allow(CompanyDecorator).to receive(:where).with(id: company.id).and_return double.as_null_object
expected = <<-HTML
<table class="table has-search">
@@ -302,6 +303,7 @@ describe TableBuilderHelper, type: :helper do
with: CompanyDecorator,
context: {line_referential: line_referential}
)
+ allow(CompanyDecorator).to receive(:where).with(id: company.id).and_return double.as_null_object
expected = <<-HTML
<table class="table has-search">