Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers/blame_helper_spec.rb')
-rw-r--r--spec/helpers/blame_helper_spec.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/spec/helpers/blame_helper_spec.rb b/spec/helpers/blame_helper_spec.rb
index d305c4c595e..30670064d93 100644
--- a/spec/helpers/blame_helper_spec.rb
+++ b/spec/helpers/blame_helper_spec.rb
@@ -2,7 +2,7 @@
require 'spec_helper'
-RSpec.describe BlameHelper do
+RSpec.describe BlameHelper, feature_category: :source_code_management do
describe '#get_age_map_start_date' do
let(:dates) do
[Time.zone.local(2014, 3, 17, 0, 0, 0),
@@ -67,4 +67,14 @@ RSpec.describe BlameHelper do
end
end
end
+
+ describe '#entire_blame_path' do
+ subject { helper.entire_blame_path(id, project) }
+
+ let_it_be(:project) { build_stubbed(:project) }
+
+ let(:id) { 'main/README.md' }
+
+ it { is_expected.to eq "/#{project.full_path}/-/blame/#{id}/streaming" }
+ end
end