<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/spec/helpers, branch check_policy_specs</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<entry>
<title>spring stubs created (spring stop needed); Fixes: #3874@1h</title>
<updated>2017-06-26T10:41:57+00:00</updated>
<author>
<name>Robert</name>
</author>
<published>2017-06-26T10:41:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=6c10034434d5855dfb1e6c5165880b4df0bcf1b4'/>
<id>6c10034434d5855dfb1e6c5165880b4df0bcf1b4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>TableBuilder spec: Remove TODO</title>
<updated>2017-06-19T15:47:40+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-06-19T15:47:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=f483c2db410f78287e77ac968a7229b0d5e5b835'/>
<id>f483c2db410f78287e77ac968a7229b0d5e5b835</id>
<content type='text'>
We're how have a separate module for the box containing links to perform
actions on selections of multiple objects in the table. I had put this
in `MultipleSelectionToolboxHelper`.

Refs #3479
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We're how have a separate module for the box containing links to perform
actions on selections of multiple objects in the table. I had put this
in `MultipleSelectionToolboxHelper`.

Refs #3479
</pre>
</div>
</content>
</entry>
<entry>
<title>TableBuilder spec: Fix hard-coded IDs in expected string</title>
<updated>2017-06-19T09:27:52+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-06-19T09:27:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=a417f0a2f2813fbec7e3c925334433f6a724405d'/>
<id>a417f0a2f2813fbec7e3c925334433f6a724405d</id>
<content type='text'>
Remove the hard-coded IDs and replace them with the test referential's
ID. I guess I had copied the output from the spec output, because the
test then passed when I ran it individually, causing me to not catch the
error. Only saw it when I ran the full test suite.

Refs #3479
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove the hard-coded IDs and replace them with the test referential's
ID. I guess I had copied the output from the spec output, because the
test then passed when I ran it individually, causing me to not catch the
error. Only saw it when I ran the full test suite.

Refs #3479
</pre>
</div>
</content>
</entry>
<entry>
<title>TableBuilder spec: Remove TODOs</title>
<updated>2017-06-15T14:48:26+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-06-15T14:48:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=3aea68a27af7a96db470fba2ad9c1f6000a681b9'/>
<id>3aea68a27af7a96db470fba2ad9c1f6000a681b9</id>
<content type='text'>
These are all finished.

Refs #3479
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These are all finished.

Refs #3479
</pre>
</div>
</content>
</entry>
<entry>
<title>TableBuilder spec: Use `UserContext`</title>
<updated>2017-06-15T14:36:12+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-06-15T14:31:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=690428d470440c604dcac52549baca8887fcd4c3'/>
<id>690428d470440c604dcac52549baca8887fcd4c3</id>
<content type='text'>
Instead of building our context with an `OpenStruct`, use the
`UserContext` class that actually exists and represents the thing that
we want to represent.

I had copied the `OpenStruct` way of doing from
"spec/support/pundit/policies.rb" this before I found out that
`UserContext` existed.

Refs #3479
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of building our context with an `OpenStruct`, use the
`UserContext` class that actually exists and represents the thing that
we want to represent.

I had copied the `OpenStruct` way of doing from
"spec/support/pundit/policies.rb" this before I found out that
`UserContext` existed.

Refs #3479
</pre>
</div>
</content>
</entry>
<entry>
<title>TableBuilder spec: Update delete button confirmation text</title>
<updated>2017-06-15T14:27:54+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-06-15T14:27:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=74c33fdd3aa52df6fd431a76790d7c7ab39acfe0'/>
<id>74c33fdd3aa52df6fd431a76790d7c7ab39acfe0</id>
<content type='text'>
The delete button confirmation text has changed now that we're getting
the delete link from `ReferentialDecorator`. Update the spec to reflect
the new state of the code.

Refs #3479
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The delete button confirmation text has changed now that we're getting
the delete link from `ReferentialDecorator`. Update the spec to reflect
the new state of the code.

Refs #3479
</pre>
</div>
</content>
</entry>
<entry>
<title>TableBuilder: Make table-level `sortable` work</title>
<updated>2017-06-15T11:52:31+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-06-15T10:33:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=d79a0db0301d14e0ab4e5ecb2d8b60560f4490a9'/>
<id>d79a0db0301d14e0ab4e5ecb2d8b60560f4490a9</id>
<content type='text'>
We need the ability to say that an entire table is not sortable. By
default, all tables are sortable, and individual columns can have
sorting deactivated. This blanket deactivates sorting for all columns.

Take our `sortable` argument and pass it to `#thead`. Then
`#build_column_header` takes that value into account when creating a
header column value.

The actual label used in the column header is determined by the old
`#column_header_label` method. We've now moved it into the
`TableBuilderHelper::Column` class because it makes more sense there.
The method will now return the column's `:name` property if it was
defined, and otherwise gets the translation for `:key` as before.

Add a test on `TableBuilderHelper` that verifies that a table with
`sortable: false` returns the correct HTML without sorting links.

Refs #3479
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We need the ability to say that an entire table is not sortable. By
default, all tables are sortable, and individual columns can have
sorting deactivated. This blanket deactivates sorting for all columns.

Take our `sortable` argument and pass it to `#thead`. Then
`#build_column_header` takes that value into account when creating a
header column value.

The actual label used in the column header is determined by the old
`#column_header_label` method. We've now moved it into the
`TableBuilderHelper::Column` class because it makes more sense there.
The method will now return the column's `:name` property if it was
defined, and otherwise gets the translation for `:key` as before.

Add a test on `TableBuilderHelper` that verifies that a table with
`sortable: false` returns the correct HTML without sorting links.

Refs #3479
</pre>
</div>
</content>
</entry>
<entry>
<title>TableBuilder spec: Decorate companies collection</title>
<updated>2017-06-15T10:11:55+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-06-15T10:11:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=34ee3f25dd9e903e27bbbbcdf85ae2803a869c76'/>
<id>34ee3f25dd9e903e27bbbbcdf85ae2803a869c76</id>
<content type='text'>
In order to enable access to `CompanyDecorator#action_links`, wrap the
companies collection passed to the table builder in the test in the
decorator.

Specify the class that `CompanyDecorator` decorates explicitly. Since
`Chouette::Company` is namespaced, Draper can't infer the model from the
decorator class name.

Refs #3479
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In order to enable access to `CompanyDecorator#action_links`, wrap the
companies collection passed to the table builder in the test in the
decorator.

Specify the class that `CompanyDecorator` decorates explicitly. Since
`Chouette::Company` is namespaced, Draper can't infer the model from the
decorator class name.

Refs #3479
</pre>
</div>
</content>
</entry>
<entry>
<title>TableBuilder spec: Update `current_referential` mock</title>
<updated>2017-06-15T10:07:51+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-06-15T10:07:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=670b3b9a4be43bd6aea1d198cfe39f158ec1187f'/>
<id>670b3b9a4be43bd6aea1d198cfe39f158ec1187f</id>
<content type='text'>
We're now using the `current_referential` method in
`TableBuilderHelper::URL` instead of in `TableBuilderHelper`. Thus it
couldn't get `current_referential` and caused an error. Move the mock to
`TableBuilderHelper::URL` to give it access to the method.

Refs #3479
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We're now using the `current_referential` method in
`TableBuilderHelper::URL` instead of in `TableBuilderHelper`. Thus it
couldn't get `current_referential` and caused an error. Move the mock to
`TableBuilderHelper::URL` to give it access to the method.

Refs #3479
</pre>
</div>
</content>
</entry>
<entry>
<title>TableBuilder spec: Add extra links from `ReferentialDecorator`</title>
<updated>2017-06-15T09:38:35+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-06-15T09:37:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=77228f4b959ff316b5f138c50f2c3b54c75ef115'/>
<id>77228f4b959ff316b5f138c50f2c3b54c75ef115</id>
<content type='text'>
A couple more links should appear in the gear menu thanks to the
inclusion of the `ReferentialDecorator#action_links`'s links in the
menu.

The test still fails, though, because the destroy link that comes out of
the decorator isn't formatted correctly (it looks like all the other
links instead of having a special icon).

Refs #3479
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A couple more links should appear in the gear menu thanks to the
inclusion of the `ReferentialDecorator#action_links`'s links in the
menu.

The test still fails, though, because the destroy link that comes out of
the decorator isn't formatted correctly (it looks like all the other
links instead of having a special icon).

Refs #3479
</pre>
</div>
</content>
</entry>
</feed>
