Permalink
Browse files

Add spec to verify integrity of association proxies

[closes #28]
  • Loading branch information...
1 parent 06a113d commit 7a89c6ee498f0692ce9875d0c42cf44c34340012 Matt Conway and Paul Elliott committed with Jun 1, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 spec/fabrication_spec.rb
@@ -91,6 +91,12 @@
should include({ parent_active_record_model_id: parent_model.id })
end
end
+
+ context 'association proxies' do
+ subject { parent_model.child_active_record_models.build }
+ let(:parent_model) { Fabricate(:parent_active_record_model_with_children) }
+ it { should be_kind_of(ChildActiveRecordModel) }
+ end
end
context 'data_mapper models' do

0 comments on commit 7a89c6e

Please sign in to comment.