<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/spec/models/concerns, branch 5505-custom_fields</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<entry>
<title>Remove specs we dont need anymore</title>
<updated>2017-11-24T16:06:52+00:00</updated>
<author>
<name>cedricnjanga</name>
</author>
<published>2017-11-24T16:06:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=ade8285b084529c09687e6995101b0aa651e2d4d'/>
<id>ade8285b084529c09687e6995101b0aa651e2d4d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Take into account code review</title>
<updated>2017-11-24T11:32:09+00:00</updated>
<author>
<name>cedricnjanga</name>
</author>
<published>2017-11-24T11:32:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=4ee768d80cc5374c84ed0b06a43eb4f4bda0f825'/>
<id>4ee768d80cc5374c84ed0b06a43eb4f4bda0f825</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add spec for stif_netex objectid_format</title>
<updated>2017-11-23T16:14:05+00:00</updated>
<author>
<name>cedricnjanga</name>
</author>
<published>2017-11-23T16:14:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=0a9b5cd19dc52e00c9516e2a4cf204580d889862'/>
<id>0a9b5cd19dc52e00c9516e2a4cf204580d889862</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix spec error format</title>
<updated>2017-09-11T07:39:52+00:00</updated>
<author>
<name>Luc Donnet</name>
</author>
<published>2017-09-11T07:39:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=1b2976d7a63cc140304bd94b88b5ddc93e0aceb0'/>
<id>1b2976d7a63cc140304bd94b88b5ddc93e0aceb0</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ErrorFormat: Change collection structure</title>
<updated>2017-08-25T16:11:06+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-08-25T16:11:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=9e4616f8dd82545aa2101aee96ca08615343c28e'/>
<id>9e4616f8dd82545aa2101aee96ca08615343c28e</id>
<content type='text'>
These tests were failing:

    1) NetexImport POST netex_imports with correct credentials and incorrect request behaves like illegal attributes missing file does not succeed
       Failure/Error: expect( json_response_body['errors'][bad_attribute.to_s] ).not_to be_empty

       TypeError:
         no implicit conversion of String into Integer
       Shared Example Group: "illegal attributes" called from ./spec/requests/api/v1/netex_import_spec.rb:90
       # ./spec/requests/api/v1/netex_import_spec.rb:77:in `[]'
       # ./spec/requests/api/v1/netex_import_spec.rb:77:in `block (6 levels) in &lt;top (required)&gt;'
       # -e:1:in `&lt;main&gt;'

    2) NetexImport POST netex_imports with correct credentials and incorrect request name already taken behaves like illegal attributes missing name does not succeed
       Failure/Error: expect( json_response_body['errors'][bad_attribute.to_s] ).not_to be_empty

       TypeError:
         no implicit conversion of String into Integer
       Shared Example Group: "illegal attributes" called from ./spec/requests/api/v1/netex_import_spec.rb:96
       # ./spec/requests/api/v1/netex_import_spec.rb:77:in `[]'
       # ./spec/requests/api/v1/netex_import_spec.rb:77:in `block (6 levels) in &lt;top (required)&gt;'
       # -e:1:in `&lt;main&gt;'

The problem was caused by the fact that the error messages come back
from `ErrorFormat` as an array of hashes, which contain a single key
corresponding to the invalid field.

Instead, the error messages should be returned as a single hash with a
bunch of keys corresponding to the invalid fields.

This change gets the above tests to pass.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These tests were failing:

    1) NetexImport POST netex_imports with correct credentials and incorrect request behaves like illegal attributes missing file does not succeed
       Failure/Error: expect( json_response_body['errors'][bad_attribute.to_s] ).not_to be_empty

       TypeError:
         no implicit conversion of String into Integer
       Shared Example Group: "illegal attributes" called from ./spec/requests/api/v1/netex_import_spec.rb:90
       # ./spec/requests/api/v1/netex_import_spec.rb:77:in `[]'
       # ./spec/requests/api/v1/netex_import_spec.rb:77:in `block (6 levels) in &lt;top (required)&gt;'
       # -e:1:in `&lt;main&gt;'

    2) NetexImport POST netex_imports with correct credentials and incorrect request name already taken behaves like illegal attributes missing name does not succeed
       Failure/Error: expect( json_response_body['errors'][bad_attribute.to_s] ).not_to be_empty

       TypeError:
         no implicit conversion of String into Integer
       Shared Example Group: "illegal attributes" called from ./spec/requests/api/v1/netex_import_spec.rb:96
       # ./spec/requests/api/v1/netex_import_spec.rb:77:in `[]'
       # ./spec/requests/api/v1/netex_import_spec.rb:77:in `block (6 levels) in &lt;top (required)&gt;'
       # -e:1:in `&lt;main&gt;'

The problem was caused by the fact that the error messages come back
from `ErrorFormat` as an array of hashes, which contain a single key
corresponding to the invalid field.

Instead, the error messages should be returned as a single hash with a
bunch of keys corresponding to the invalid fields.

This change gets the above tests to pass.
</pre>
</div>
</content>
</entry>
<entry>
<title>ErrorFormat spec: Use `build_stubbed`</title>
<updated>2017-08-25T14:56:39+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-08-25T14:56:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=438970931bcc11f460145ea88bbcbfd2ad7bafac'/>
<id>438970931bcc11f460145ea88bbcbfd2ad7bafac</id>
<content type='text'>
Speed up these tests by using `build_stubbed` for factories where
possible.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Speed up these tests by using `build_stubbed` for factories where
possible.
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs: #4273@3h;</title>
<updated>2017-08-22T07:37:30+00:00</updated>
<author>
<name>Robert</name>
</author>
<published>2017-08-21T18:24:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=61c4a303183284fc107325aeeef5ace7a3e68c0c'/>
<id>61c4a303183284fc107325aeeef5ace7a3e68c0c</id>
<content type='text'>
Debugging Java Integration (ZipService -&gt; HTTPService -&gt; Object Creation)

   - Created an ErrorFormat concern to see what went wrong in the HTTP call
     as so many things can go wrong due to:

      * Timeout Issues
      * Illegal database setup or cleaning before tests
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Debugging Java Integration (ZipService -&gt; HTTPService -&gt; Object Creation)

   - Created an ErrorFormat concern to see what went wrong in the HTTP call
     as so many things can go wrong due to:

      * Timeout Issues
      * Illegal database setup or cleaning before tests
</pre>
</div>
</content>
</entry>
</feed>
