Sha256: fc0c88c7eed4fe08cb20681bfb495dd4967b3c1a122ee249f0e582e320e9d0d1
Contents?: true
Size: 333 Bytes
Versions: 1
Compression:
Stored size: 333 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.3 | rails_generators/shoulda_machinist_model/templates/unit_test.rb |