0
@@ -34,26 +34,34 @@ describe Preference, "by default" do
0
-describe Preference, "in general" do
0
- it "should be valid with valid attributes"
0
- it "should require an attribute"
0
- it "should have an owner"
0
- it "should have an owner type"
0
- it "should not require a group"
0
- it "should not require a group even when a group type is specified"
0
- it "should not require a group type"
0
- it "should require a group type a group_id is specified"
0
describe Preference, "as a Class" do
0
- it "should be able to split nil groups"
0
- it "should be able to split non ActiveRecord groups"
0
- it "should be able to split ActiveRecord group"
0
+ it "should be able to split nil groups" do
0
+ group_id, group_type = Preference.split_group(nil)
0
+ group_id.should be_nil
0
+ group_type.should be_nil
0
+ it "should be able to split non ActiveRecord groups" do
0
+ group_id, group_type = Preference.split_group('car')
0
+ group_id.should be_nil
0
+ group_type.should == 'car'
0
-describe Preference, "after being created" do
0
- it "should have an owner"
0
- it "should have a definition"
0
- it "should have a value"
0
- it "should not have a group association"
0
+# describe Preference, "after being created" do
0
+# it "should have an owner"
0
+# it "should have a definition"
0
+# it "should have a value"
0
+# it "should not have a group association"
0
+# describe Preference, "in general" do
0
+# it "should be valid with valid attributes"
0
+# it "should require an attribute"
0
+# it "should have an owner"
0
+# it "should have an owner type"
0
+# it "should not require a group"
0
+# it "should not require a group even when a group type is specified"
0
+# it "should not require a group type"
0
+# it "should require a group type a group_id is specified"
Comments
No one has commented yet.