diff options
author | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2015-02-12 19:17:35 +0100 |
---|---|---|
committer | Jeroen van Baarsen <jeroenvanbaarsen@gmail.com> | 2015-02-12 19:17:35 +0100 |
commit | 0c4a70a306b871899bf87ce4673918abfee4d95f (patch) | |
tree | c7a702fb511209ffe0eceba245d1ffea71dce1aa /spec/features/profile_spec.rb | |
parent | de1c450abd6b367390a1295cac402344f500d41d (diff) | |
download | gitlab-ce-0c4a70a306b871899bf87ce4673918abfee4d95f.tar.gz |
Updated rspec to rspec 3.x syntax
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
Diffstat (limited to 'spec/features/profile_spec.rb')
-rw-r--r-- | spec/features/profile_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/features/profile_spec.rb b/spec/features/profile_spec.rb index 4a76e89fd34..dfbe65cee9d 100644 --- a/spec/features/profile_spec.rb +++ b/spec/features/profile_spec.rb @@ -13,11 +13,11 @@ describe "Profile account page", feature: true do visit profile_account_path end - it { page.should have_content("Remove account") } + it { expect(page).to have_content("Remove account") } it "should delete the account" do expect { click_link "Delete account" }.to change {User.count}.by(-1) - current_path.should == new_user_session_path + expect(current_path).to eq(new_user_session_path) end end @@ -28,8 +28,8 @@ describe "Profile account page", feature: true do end it "should not have option to remove account" do - page.should_not have_content("Remove account") - current_path.should == profile_account_path + expect(page).not_to have_content("Remove account") + expect(current_path).to eq(profile_account_path) end end end |