summaryrefslogtreecommitdiff
path: root/spec/helpers/commits_helper_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers/commits_helper_spec.rb')
-rw-r--r--spec/helpers/commits_helper_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/helpers/commits_helper_spec.rb b/spec/helpers/commits_helper_spec.rb
index 4e94636ba45..34445d26258 100644
--- a/spec/helpers/commits_helper_spec.rb
+++ b/spec/helpers/commits_helper_spec.rb
@@ -321,4 +321,13 @@ RSpec.describe CommitsHelper do
it { is_expected.to include(pipeline.cache_key) }
end
end
+
+ describe "#commit_path_template" do
+ let(:project) { build(:project) }
+ let(:expected_path) { "/#{project.full_path}/-/commit/$COMMIT_SHA" }
+
+ subject { helper.commit_path_template(project) }
+
+ it { is_expected.to eq(expected_path) }
+ end
end