Commit e6813c2

mo <mo.khan@gmail.com>
2019-05-30 23:45:04
convert pending tests to running tests
1 parent 012b22d
Changed files (2)
app
controllers
spec
requests
app/controllers/scim/v2/users_controller.rb
@@ -15,7 +15,6 @@ module Scim
         else
           @users = paginate(User.order(:created_at), page: page - 1, page_size: page_size)
         end
-
         render formats: :scim, status: :ok
       end
 
spec/requests/scim/v2/users_spec.rb
@@ -227,12 +227,11 @@ describe '/scim/v2/users' do
         before { get "/scim/v2/users", params: { filter: filter  }, headers: headers }
 
         specify { expect(response).to have_http_status(:ok) }
-        pending { expect(json[:totalResults]).to be(2) }
+        specify { expect(json[:totalResults]).to be(2) }
         specify { expect(json[:startIndex]).to eql(1) }
         specify { expect(json[:itemsPerPage]).to eql(25) }
         specify { expect(json[:Resources]).to be_present }
-        pending { expect(json[:Resources][0][:id]).to eql(first_matching_user.to_param) }
-        pending { expect(json[:Resources][1][:id]).to eql(second_matching_user.to_param) }
+        specify { expect(json[:Resources].map { |x| x[:id] }).to match_array([first_matching_user.to_param, second_matching_user.to_param]) }
       end
     end