File: controller_spec.rb

package info (click to toggle)
ruby-rspec-rails 8.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,804 kB
  • sloc: ruby: 10,881; sh: 198; makefile: 6
file content (16 lines) | stat: -rw-r--r-- 350 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'rails_helper'

<% module_namespacing do -%>
RSpec.describe <%= class_name %>Controller, <%= type_metatag(:controller) %> do

<% for action in actions -%>
  describe "GET #<%= action %>" do
    it "returns http success" do
      get :<%= action %>
      expect(response).to have_http_status(:success)
    end
  end

<% end -%>
end
<% end -%>