Permalink
Browse files

cleanup tests

  • Loading branch information...
brantwedel committed Mar 17, 2014
1 parent 955e43e commit b0f815dc50b756713ce32ae4d63762b2ba8097fe
Showing with 0 additions and 38 deletions.
  1. +0 −5 test/dummy/app/models/related_model.rb
  2. +0 −12 test/dummy/app/models/test_model.rb
  3. +0 −21 test/dummy/db/schema.yaml
@@ -1,5 +0,0 @@
class RelatedModel < ActiveRecord::Base
belongs_to :test_model
attr_accessible :test_model_id
end
@@ -1,12 +0,0 @@
class TestModel < ActiveRecord::Base
has_many :related_models, dependent: :destroy
attr_accessible :name
accepts_nested_attributes_for :related_models
# returns: string
def to_s
name
end
end
View
@@ -1,21 +0,0 @@
---
TestModel:
attributes:
name:
type: string
primary_ref:
-
methods:
to_s:
returns: string
getter: name
has_many:
related_models:
dependent: destroy
class_names:
- RelatedModel
RelatedModel:
belongs_to:
test_model:
class_names:
- TestModel

0 comments on commit b0f815d

Please sign in to comment.