summaryrefslogtreecommitdiff
path: root/spec/helpers/releases_helper_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers/releases_helper_spec.rb')
-rw-r--r--spec/helpers/releases_helper_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/helpers/releases_helper_spec.rb b/spec/helpers/releases_helper_spec.rb
index f10a2ed8e60..704e8dc40cb 100644
--- a/spec/helpers/releases_helper_spec.rb
+++ b/spec/helpers/releases_helper_spec.rb
@@ -64,6 +64,7 @@ RSpec.describe ReleasesHelper do
describe '#data_for_edit_release_page' do
it 'has the needed data to display the "edit release" page' do
keys = %i(project_id
+ project_path
tag_name
markdown_preview_path
markdown_docs_path
@@ -80,6 +81,7 @@ RSpec.describe ReleasesHelper do
describe '#data_for_new_release_page' do
it 'has the needed data to display the "new release" page' do
keys = %i(project_id
+ project_path
releases_page_path
markdown_preview_path
markdown_docs_path
@@ -92,5 +94,15 @@ RSpec.describe ReleasesHelper do
expect(helper.data_for_new_release_page.keys).to match_array(keys)
end
end
+
+ describe '#data_for_show_page' do
+ it 'has the needed data to display the individual "release" page' do
+ keys = %i(project_id
+ project_path
+ tag_name)
+
+ expect(helper.data_for_show_page.keys).to match_array(keys)
+ end
+ end
end
end