diff options
Diffstat (limited to 'features')
-rw-r--r-- | features/profile/profile.feature | 1 | ||||
-rw-r--r-- | features/steps/profile/profile.rb | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/features/profile/profile.feature b/features/profile/profile.feature index 53a93b0f908..3b61552a73d 100644 --- a/features/profile/profile.feature +++ b/features/profile/profile.feature @@ -18,6 +18,7 @@ Feature: Profile Scenario: My password is expired Given my password is expired + And I am not an ldap user And I visit profile account page Then I redirected to expired password page And I submit new password diff --git a/features/steps/profile/profile.rb b/features/steps/profile/profile.rb index 23eeac447b0..6944977c3ff 100644 --- a/features/steps/profile/profile.rb +++ b/features/steps/profile/profile.rb @@ -91,6 +91,11 @@ class Profile < Spinach::FeatureSteps current_user.update_attributes(password_expires_at: Time.now - 1.hour) end + step "I am not an ldap user" do + current_user.update_attributes(extern_uid: nil, provider: '') + current_user.ldap_user?.should be_false + end + step 'I redirected to expired password page' do current_path.should == new_profile_password_path end |