spec/unit/associations_spec.rb in mongoid-rspec-1.1.2 vs spec/unit/associations_spec.rb in mongoid-rspec-1.2.0
- old
+ new
@@ -1,31 +1,31 @@
-require 'spec_helper'
-
-describe "Associations" do
- describe User do
- subject { User }
-
- it { should have_many_related :articles }
- it { should have_many_related :comments }
- it { should embed_one :profile }
- end
-
- describe Profile do
- subject { Profile }
-
- it { should be_embedded_in(:user).as_inverse_of(:profile) }
- end
-
- describe Article do
- subject { Article }
-
- it { should belong_to_related(:user).as_inverse_of(:articles) }
- it { should embed_many(:comments) }
- end
-
- describe Comment do
- subject { Comment }
-
- it { should be_embedded_in(:article).as_inverse_of(:comments) }
- it { should belong_to_related(:user).as_inverse_of(:comments) }
- end
-end
+# require 'spec_helper'
+#
+# describe "Associations" do
+# describe User do
+# subject { User }
+#
+# it { should reference_many :articles }
+# it { should reference_many :comments }
+# it { should embed_one :profile }
+# end
+#
+# describe Profile do
+# subject { Profile }
+#
+# it { should be_embedded_in(:user).as_inverse_of(:profile) }
+# end
+#
+# describe Article do
+# subject { Article }
+#
+# it { should be_referenced_in(:user).as_inverse_of(:articles) }
+# it { should embed_many(:comments) }
+# end
+#
+# describe Comment do
+# subject { Comment }
+#
+# it { should be_embedded_in(:article).as_inverse_of(:comments) }
+# it { should be_referenced_in(:user).as_inverse_of(:comments) }
+# end
+# end
\ No newline at end of file