Skip to content

Commit

Permalink
added spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Faizaan Gagan committed Dec 28, 2023
1 parent 8e9a912 commit d66eee7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/requests/categories_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,9 @@
}
expect(Category.can_vote?(category.id)).to eq(false)
end

it "works fine when `custom_fields` isn't passed " do
put "/categories/#{category.id}.json", params: {hello: "world"}
expect(response.status).to eq(200)
end
end

0 comments on commit d66eee7

Please sign in to comment.