lib/rspec/models/unidom/visitor/authenticating_spec.rb in unidom-visitor-1.13.5 vs lib/rspec/models/unidom/visitor/authenticating_spec.rb in unidom-visitor-1.13.6
- old
+ new
@@ -29,8 +29,12 @@
it_behaves_like 'belongs_to', model_attributes, :credential, Unidom::Visitor::Password, password_attributes
it_behaves_like 'polymorphic scope', model_attributes, :visitor_is, :visitor, [ Unidom::Visitor::User, Unidom::Visitor::Guest ]
it_behaves_like 'polymorphic scope', model_attributes, :credential_is, :credential, [ Unidom::Visitor::Password ]
+ #visitor = Unidom::Visitor::User.create! user_attributes
+ #password = Unidom::Visitor::Password.create! password_attributes
+ #it_behaves_like 'assert_present!', described_class, :authenticate!, [ visitor, { with: password, opened_at: Time.now } ], [ { 0 => :visitor }, :with, :opened_at ]
+
end
end