Sha256: 107e7eba51f6761cee073ab5a77d73179688ea5e69ae01311dfa8003e2adb13b
Contents?: true
Size: 398 Bytes
Versions: 6
Compression:
Stored size: 398 Bytes
Contents
require 'rails_helper' module Nodes RSpec.describe Node, type: :model do let(:node) { create :nodes_node } it 'has a valid factory' do expect(node).to be_valid end it 'has a valid build factory' do expect(build(:nodes_node)).to be_valid end it 'is invalid without a name' do expect(build(:nodes_node, name: nil)).not_to be_valid end end end
Version data entries
6 entries across 6 versions & 1 rubygems