Sha256: deea32ec6855f30ec4ed6207d861bd6896eea6c2c9cff78bb3f98248e9a0457a

Contents?: true

Size: 245 Bytes

Versions: 6

Compression:

Stored size: 245 Bytes

Contents

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

class <%= goal.cs %>Test < ActiveSupport::TestCase
  <% goal.associations.each do |k, v| %>
    <% if :belongs_to == v[:type] %>
  <%= "should_belong_to :#{k}" %>
    <% end %>
  <% end %>
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mattknox-goaloc-0.4.0 lib/goaloc/generators/rails/model_test.rb.erb
mattknox-goaloc-0.4.1 lib/goaloc/generators/rails/model_test.rb.erb
mattknox-goaloc-0.4.2 lib/goaloc/generators/rails/model_test.rb.erb
mattknox-goaloc-0.4.4 lib/goaloc/generators/rails/model_test.rb.erb
mattknox-goaloc-0.4.5 lib/goaloc/generators/rails/model_test.rb.erb
mattknox-goaloc-0.4.7 lib/goaloc/generators/rails/unit_test.erb