Sha256: 53aded5f5b5f8ed6b287fca4af8945bd8d615767e61ab7e1974ee46eeb97d33d

Contents?: true

Size: 525 Bytes

Versions: 1

Compression:

Stored size: 525 Bytes

Contents

<%- unless ModelBase.config.frozen_string_literal.nil? -%>
# frozen_string_literal: <%= ModelBase.config.frozen_string_literal.inspect %>
<%- end -%>
require 'rails_helper'

RSpec.describe '<%= class_name.pluralize %>', <%= type_metatag(:request) %> do
  let(:user) { FactoryBot.create(:user) }
  before { login_as(user, scope: :user) }

  describe 'GET /<%= table_name %>' do
    it 'works! (now write some real specs)' do
      get <%= index_helper %>_path
      expect(response).to have_http_status(200)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
model_base_generators-0.4.0 lib/templates/rspec/integration/request_spec.rb