18 lines
553 B
Text
18 lines
553 B
Text
|
# frozen_string_literal: true
|
||
|
|
||
|
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||
|
require 'rails_helper'
|
||
|
|
||
|
RSpec.describe "<%= class_name.pluralize %>", <%= type_metatag(:request) %> do
|
||
|
<% namespaced_path = regular_class_path.join('/') %>
|
||
|
<% for action in actions -%>
|
||
|
describe "GET /<%= action %>" do
|
||
|
it "returns http success" do
|
||
|
get "<%= "/#{namespaced_path}" if namespaced_path != '' %>/<%= file_name %>/<%= action %>"
|
||
|
expect(response).to have_http_status(:success)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
<% end -%>
|
||
|
end
|