diff options
author | Rémy Coutable <remy@rymai.me> | 2017-04-14 18:32:09 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-04-14 18:32:09 +0300 |
commit | 9bb9cbfd937a17056c598862d6617724eae86948 (patch) | |
tree | 67c9944a34af1ad2641e2fe49ca6cc9b97ab2398 /spec/requests/git_http_spec.rb | |
parent | 41b71efd51f7c645ba83099ba53efcba9d5b5660 (diff) |
Use a proper matcher
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/requests/git_http_spec.rb')
-rw-r--r-- | spec/requests/git_http_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/requests/git_http_spec.rb b/spec/requests/git_http_spec.rb index 7124a3caff3..069ff4bdaa3 100644 --- a/spec/requests/git_http_spec.rb +++ b/spec/requests/git_http_spec.rb @@ -3,6 +3,7 @@ require "spec_helper" describe 'Git HTTP requests', lib: true do include GitHttpHelpers include WorkhorseHelpers + include UserActivitiesHelpers it "gives WWW-Authenticate hints" do clone_get('doesnt/exist.git') @@ -159,8 +160,9 @@ describe 'Git HTTP requests', lib: true do end it 'updates the user last activity' do + expect(user_activity(user)).to be_nil download(path, {}) do |response| - expect(user.reload.last_activity_on).not_to be_nil + expect(user_activity(user)).to be_present end end end |