spec/support/controllers/nyauth/session_concern.rb in nyauth-0.2.3 vs spec/support/controllers/nyauth/session_concern.rb in nyauth-0.2.4

- old
+ new

@@ -10,9 +10,15 @@ it '#signed_in? should change result from false to true 'do expect { subject }.to change { controller.signed_in?(options) }.from(false).to(true) end + + it '#signed_in?(as: :admin) should not change result from false'do + expect { + subject + }.not_to change { controller.signed_in?(as: :admin) }.from(false) + end it '#current_authenticated should change from result nil to user 'do expect { subject }.to change { controller.current_authenticated }.from(nil).to(user)