Sha256: 8937c8683f8c0e883c913332c1b61a1bad83d4c9899a36b99afdcefc8012a8d5
Contents?: true
Size: 432 Bytes
Versions: 1
Compression:
Stored size: 432 Bytes
Contents
require "spec_helper" describe AddressForm do it "FormObject with a belongs_to with a differente class then the represented_object's relation" do params = { address: { post_attributes: { title: 'asd', body: 'body' } } } address_form = AddressForm.new(params[:address]) address_form.address.post.should == nil address_form.post address_form.address.post.should_not == nil end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
object_attorney-2.10.9 | spec/object_attorney/address_form_spec.rb |