spec/preferences_spec.rb in flavors-0.5.0 vs spec/preferences_spec.rb in flavors-0.6.0

- old
+ new

@@ -12,9 +12,17 @@ end end subject { User.create } + it "returns preferences array" do + expect(User.reflections_of_preferences).to eq [:notification] + end + + it "scopes preferences for different classes" do + expect(Post.reflections_of_preferences).to eq [:sticky] + end + it "has a default value" do expect(subject.notification).to be_truthy end it "updates preference" do