Sha256: b57229c446ebb259c7106b70baf4f366bbaf92ab06428bb0a49113ff5c8e9226

Contents?: true

Size: 524 Bytes

Versions: 82

Compression:

Stored size: 524 Bytes

Contents

# frozen_string_literal: true

<% module_namespacing do -%>
require 'rails_helper'

RSpec.describe <%= class_name %>, <%= type_metatag(:model) %> do
  has_valid_factory(:<%= class_name.constantize.table_name.singularize %>)

  describe 'Attributes' do
    # run `rails spec:attributes <%= class_name -%>` to replace this line

    pending "add some examples to (or delete) #{__FILE__} Attributes"
  end

  describe 'Associations' do
    pending "add some examples to (or delete) #{__FILE__} Attributes"
  end
end
<% end -%>

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
better_record-0.8.2 lib/templates/rspec/model/model_spec.rb
better_record-0.8.1 lib/templates/rspec/model/model_spec.rb