Sha256: 6d6a47282023123257f2408089f9f7c2b43f1951e7cb2f0039075f7dc9e2f638
Contents?: true
Size: 291 Bytes
Versions: 2
Compression:
Stored size: 291 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe <%= class_name %> do it "should be valid" do Factory.build(:<%= singular_name %>).should be_valid end it "should require a name" do Factory.build(:<%= singular_name %>, :name => '').should_not be_valid end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
linki-nifty-generators-0.3.1 | rails_generators/nifty_scaffold/templates/tests/rspec/model.rb |
linki-nifty_generators-0.3.1 | rails_generators/nifty_scaffold/templates/tests/rspec/model.rb |