Skip to content

Commit

Permalink
extra type in the tests caused all testing to pause
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirv committed Jun 2, 2017
1 parent fd7a49f commit 1bcc1ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/recipes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def set_recipe
end

def require_same_user
if not is_owner? then
if current_user == @recipe.user_id then
flash[:danger] = "You can only edit your own recipes"
redirect_to recipes_path
end
Expand Down
4 changes: 2 additions & 2 deletions test/controllers/ingredient_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

class IngredientControllerTest < ActionController::TestCase
test "should get name:string" do
get :name:string
get :name
assert_response :success
end

test "should get recipe_id:integer" do
get :recipe_id:integer
get :recipe_id
assert_response :success
end

Expand Down

0 comments on commit 1bcc1ab

Please sign in to comment.