spec/granite/form/model/validations/associated_spec.rb in granite-form-0.2.0 vs spec/granite/form/model/validations/associated_spec.rb in granite-form-0.3.0
- old
+ new
@@ -1,20 +1,18 @@
require 'spec_helper'
describe Granite::Form::Model::Validations::AssociatedValidator do
before do
stub_model(:validated_assoc) do
- include Granite::Form::Model
- include Granite::Form::Model::Lifecycle
+ include Granite::Form::Model::Persistence
attribute :name, String
validates_presence_of :name
end
stub_model(:unvalidated_assoc) do
- include Granite::Form::Model
- include Granite::Form::Model::Lifecycle
+ include Granite::Form::Model::Persistence
attribute :name, String
end
stub_model(:main) do