Skip to content

Commit

Permalink
fix params with stringified keys that are part of the URL getting app…
Browse files Browse the repository at this point in the history
…ended to query
  • Loading branch information
balvig committed Apr 19, 2021
1 parent e83847d commit 9e8aacf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/scopes_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ def test_chainable_where
assert_requested endpoint
end

def test_where_with_stringified_keys
endpoint = stub_request(:get, 'http://sushi.com/recipes/1/image')

RecipeImage.where("recipe_id" => 1).to_a

assert_requested endpoint
end

def test_chainable_class_method
endpoint = stub_request(:get, 'http://sushi.com/recipes?status=published&per_page=3')

Expand Down

0 comments on commit 9e8aacf

Please sign in to comment.