spec/lib/auth/model_spec.rb in sparkly-auth-1.1.0 vs spec/lib/auth/model_spec.rb in sparkly-auth-1.2.1
- old
+ new
@@ -6,18 +6,18 @@
it "should fail silently during initialization because it might not have been generated yet" do
proc { subject }.should_not raise_error
end
end
-
+
context "with default options" do
subject { Auth::Model.new(:user, :behaviors => [:core]) }
before(:each) do
reload!
subject.apply_options!
end
-
+
it "should validate presence of :email on User" do
error_on(User, :email).should == "can't be blank"
end
it "should use :core behavior" do