Sha256: 3172cc47e6cbe74b3df94aeb152c7ad670a2f25b61badd40d52f9410f59b05db

Contents?: true

Size: 245 Bytes

Versions: 2

Compression:

Stored size: 245 Bytes

Contents

require File.dirname(__FILE__) + '/../spec_helper'

describe <%= model_name %> do

  before :each do
    @<%= singular_name %> = Factory :<%= singular_name %>
  end

  it 'should be valid' do
    @<%= singular_name %>.should be_valid
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dm-haml-scaffold-generator-0.0.2 generators/dm_haml_scaffold/templates/model_spec.rb
dm-haml-scaffold-generator-0.0.1 generators/dm_haml_scaffold/templates/model_spec.rb