summaryrefslogtreecommitdiff
path: root/spec/requests
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-07-07 16:09:30 +0200
committerJames Lopez <james@jameslopez.es>2017-07-07 16:09:30 +0200
commit5e66c6568ba2a528e037eaf9d466cfb489b52891 (patch)
tree13c36e19f5b6c2ff550090be5867d76256227d78 /spec/requests
parent377244dd45773a5d587eaf3b75ba64702229e34e (diff)
downloadgitlab-ce-5e66c6568ba2a528e037eaf9d466cfb489b52891.tar.gz
fix specs
Diffstat (limited to 'spec/requests')
-rw-r--r--spec/requests/api/users_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/requests/api/users_spec.rb b/spec/requests/api/users_spec.rb
index ae1764c3d49..c34b88f0741 100644
--- a/spec/requests/api/users_spec.rb
+++ b/spec/requests/api/users_spec.rb
@@ -165,7 +165,7 @@ describe API::Users do
end
it "returns a user created before a specific date" do
- user = create(:user, created_at: Date.new(2000,1,1))
+ user = create(:user, created_at: Date.new(2000, 1, 1))
get api("/users?created_before=2000-01-02T00:00:00.060Z", admin)
@@ -175,7 +175,7 @@ describe API::Users do
end
it "returns no users created before a specific date" do
- create(:user, created_at: Date.new(2001,1,1))
+ create(:user, created_at: Date.new(2001, 1, 1))
get api("/users?created_before=2000-01-02T00:00:00.060Z", admin)
@@ -184,7 +184,7 @@ describe API::Users do
end
it "returns users created before and after a specific date" do
- user = create(:user, created_at: Date.new(2001,1,1))
+ user = create(:user, created_at: Date.new(2001, 1, 1))
get api("/users?created_before=2001-01-02T00:00:00.060Z&created_after=1999-01-02T00:00:00.060", admin)