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.25.2 lib/templates/rspec/model/model_spec.rb
better_record-0.25.1 lib/templates/rspec/model/model_spec.rb
better_record-0.25.0 lib/templates/rspec/model/model_spec.rb
better_record-0.24.4 lib/templates/rspec/model/model_spec.rb
better_record-0.24.3 lib/templates/rspec/model/model_spec.rb
better_record-0.23.7 lib/templates/rspec/model/model_spec.rb
better_record-0.23.6 lib/templates/rspec/model/model_spec.rb
better_record-0.23.5 lib/templates/rspec/model/model_spec.rb
better_record-0.23.4 lib/templates/rspec/model/model_spec.rb
better_record-0.23.3 lib/templates/rspec/model/model_spec.rb
better_record-0.22.9 lib/templates/rspec/model/model_spec.rb
better_record-0.22.8 lib/templates/rspec/model/model_spec.rb
better_record-0.22.7 lib/templates/rspec/model/model_spec.rb
better_record-0.22.6 lib/templates/rspec/model/model_spec.rb
better_record-0.22.5 lib/templates/rspec/model/model_spec.rb
better_record-0.22.4 lib/templates/rspec/model/model_spec.rb
better_record-0.22.3 lib/templates/rspec/model/model_spec.rb
better_record-0.21.3 lib/templates/rspec/model/model_spec.rb
better_record-0.22.2 lib/templates/rspec/model/model_spec.rb
better_record-0.22.0 lib/templates/rspec/model/model_spec.rb