aboutsummaryrefslogtreecommitdiffstats
path: root/spec/helpers
diff options
context:
space:
mode:
authorTeddy Wing2017-06-19 11:27:52 +0200
committerTeddy Wing2017-06-19 11:27:52 +0200
commita417f0a2f2813fbec7e3c925334433f6a724405d (patch)
tree81d6f1c221f55f97ee203eb7461cc7366da0a9a7 /spec/helpers
parenta6b84e751068da4cce61aec75690a2d1ea295b13 (diff)
downloadchouette-core-a417f0a2f2813fbec7e3c925334433f6a724405d.tar.bz2
TableBuilder spec: Fix hard-coded IDs in expected string
Remove the hard-coded IDs and replace them with the test referential's ID. I guess I had copied the output from the spec output, because the test then passed when I ran it individually, causing me to not catch the error. Only saw it when I ran the full test suite. Refs #3479
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/table_builder_helper_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/helpers/table_builder_helper_spec.rb b/spec/helpers/table_builder_helper_spec.rb
index 199373e24..a61fd2343 100644
--- a/spec/helpers/table_builder_helper_spec.rb
+++ b/spec/helpers/table_builder_helper_spec.rb
@@ -79,8 +79,8 @@ describe TableBuilderHelper, type: :helper do
<ul class="dropdown-menu">
<li><a href="/referentials/#{referential.id}">Consulter</a></li>
<li><a href="/referentials/#{referential.id}/edit">Editer</a></li>
- <li><a href="/referentials/1008/time_tables">Calendriers</a></li>
- <li><a href="/referentials/new?from=1008">Dupliquer</a></li>
+ <li><a href="/referentials/#{referential.id}/time_tables">Calendriers</a></li>
+ <li><a href="/referentials/new?from=#{referential.id}">Dupliquer</a></li>
<li><a rel="nofollow" data-method="put" href="/referentials/#{referential.id}/archive">Conserver</a></li>
<li class="delete-action"><a data-confirm="Etes vous sûr de vouloir supprimer ce jeu de données ?" rel="nofollow" data-method="delete" href="/referentials/#{referential.id}"><span class="fa fa-trash"></span>Supprimer</a></li>
</ul>