test/test_rest_methods.rb in myjohndeere-0.1.0 vs test/test_rest_methods.rb in myjohndeere-0.1.1

- old
+ new

@@ -61,13 +61,14 @@ MyJohnDeere::Organization.build_resource_base_path!(resource_path, {}) end end def test_list_with_body + embed = {embed: "boundaries"} stub_request(:get, /organizations/). - with(query: {embed: "boundaries"}, + with(query: embed, headers: {MyJohnDeere::ETAG_HEADER_KEY=>""}). to_return(status: 200, body: LIST_FIXTURE.to_json()) - organizations = MyJohnDeere::Organization.list(default_access_token, count: 1, etag: "", body: {embed: "boundaries"}) - assert_equal({:embed=>"boundaries"}, organizations.options[:body]) + organizations = MyJohnDeere::Organization.list(default_access_token, count: 1, etag: "", body: embed) + assert_equal(embed, organizations.options[:body]) end end \ No newline at end of file