Sha256: df89aab380e5aab337f8e75838a87d1c2f2c8bea7438b716e166c007cdd29857

Contents?: true

Size: 337 Bytes

Versions: 1

Compression:

Stored size: 337 Bytes

Contents

  require 'test_helper'

class <%= class_name %>Test < ActiveSupport::TestCase

  context "The <%= class_name %> model" do

  	setup do
  		@<%= file_name %> = <%= class_name %>.make
  	end

    subject { @<%= file_name %> }

  <% for attribute in attributes -%>
    should_have_db_column :<%= attribute.name %>
  <% end -%>
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoulda_machinist_generator-0.4.4 rails_generators/shoulda_machinist_model/templates/unit_test.rb