Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
cleanup debugger code...oops
Browse files Browse the repository at this point in the history
  • Loading branch information
cycomachead committed Apr 22, 2015
1 parent 0d955f8 commit b9ac374
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion app/controllers/api/v1/projects_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ def show
# returns all projects if user is looking at own projects
# returns public projects for users if otherwise
def index
# find_project
if @project
respond_with @project
return
Expand Down
1 change: 1 addition & 0 deletions spec/controllers/api/v1/projects_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
proj4 = Project.create(title: "nonuser private", owner:not_users_id, is_public: 0)
get :index, {user_id: user.id}, format: :json
project_response = JSON.parse(response.body, symbolize_names: true)

expect(project_response.length).to eq(2)
expect(project_response[0][:title]).to eq("user public")
expect(project_response[1][:title]).to eq("user private")
Expand Down

0 comments on commit b9ac374

Please sign in to comment.