<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/spec/views/lines, branch 5642-insee-code</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<entry>
<title>Refs 5669; Fix specs</title>
<updated>2018-02-09T10:08:11+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-02-09T09:52:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=34dca4bbfc60b17a1648d8af34d592ec7c58c0ca'/>
<id>34dca4bbfc60b17a1648d8af34d592ec7c58c0ca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5669 @2h; Fix Specs</title>
<updated>2018-02-09T09:22:01+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-02-08T12:48:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=708c2fbe2f579426972a45f9a716d844a8e825ae'/>
<id>708c2fbe2f579426972a45f9a716d844a8e825ae</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5669; Add more snapshots</title>
<updated>2018-02-09T09:22:01+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-01-23T13:05:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=81e6a92e128ac747f526a83efb5a88157f71635a'/>
<id>81e6a92e128ac747f526a83efb5a88157f71635a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5586 @1h; Ensure retrocompatibility</title>
<updated>2018-01-25T16:17:59+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-01-16T15:08:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=305c10faa98bcf157ca114293b634da32a16cc37'/>
<id>305c10faa98bcf157ca114293b634da32a16cc37</id>
<content type='text'>
And remove snapshots (we don't need it anymore)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
And remove snapshots (we don't need it anymore)
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5586 @4h; First `action_links` refactor</title>
<updated>2018-01-25T16:17:57+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-01-15T09:34:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=8c9ce8f5c143d1e9d3f2c038e447a01ee59c91d3'/>
<id>8c9ce8f5c143d1e9d3f2c038e447a01ee59c91d3</id>
<content type='text'>
- Implement new API
- Migrate the LineDecorator
- ensure no change on the "lines/index" view
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Implement new API
- Migrate the LineDecorator
- ensure no change on the "lines/index" view
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #5430 @2h; Deactivate lines instead of destroying them</title>
<updated>2017-12-21T20:19:27+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2017-12-20T11:58:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=9a34cb48f49df574ae1e7c599713ed246e2938cf'/>
<id>9a34cb48f49df574ae1e7c599713ed246e2938cf</id>
<content type='text'>
- Add `activate` and `deactivate` actions in `LinesController`, as well
as corresponding routes
- Add `activate!` and `deactivate!` methods in `Chouette::Line`, as well
as `activated?`
- Add `activate?` and `deactivate?` permissions in `LinePolicy`
- Add corresponding `action_links`in the Decorator
- Create helper for these actions
- Add an optional `'extra_class` to the Links
- Update styles for ".delete-action" to handle the case where there are
several
- Add I18n keys accordingly
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Add `activate` and `deactivate` actions in `LinesController`, as well
as corresponding routes
- Add `activate!` and `deactivate!` methods in `Chouette::Line`, as well
as `activated?`
- Add `activate?` and `deactivate?` permissions in `LinePolicy`
- Add corresponding `action_links`in the Decorator
- Create helper for these actions
- Add an optional `'extra_class` to the Links
- Update styles for ".delete-action" to handle the case where there are
several
- Add I18n keys accordingly
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove page title test on views spec</title>
<updated>2017-11-28T11:23:38+00:00</updated>
<author>
<name>Xinhui</name>
</author>
<published>2017-11-24T16:52:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=9a313f95785a55788af54a46bf1f846b74c16c54'/>
<id>9a313f95785a55788af54a46bf1f846b74c16c54</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>lines/show.html.erb_spec.rb: Fix specs resulting from `LineDecorator`</title>
<updated>2017-06-19T16:40:09+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2017-06-19T16:35:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=140270297b1db064b78472ccd7e59b8279d21be7'/>
<id>140270297b1db064b78472ccd7e59b8279d21be7</id>
<content type='text'>
The tests failed because we weren't using a decorated `Chouette::Line`
object, but the views now expect decorated lines in order to be able to
call the `#action_links` method.

Here are our failures:

    5) /lines/show should render h1 with the line name
       Failure/Error: - @line.action_links.each do |link|

       ActionView::Template::Error:
         undefined method `action_links' for #&lt;Chouette::Line:0x007fc8cdf0bb88&gt;
       # ./app/views/lines/show.html.slim:10:in `block in _app_views_lines_show_html_slim___3813514632397395671_70250211127360'
       # ./app/helpers/newapplication_helper.rb:246:in `block (2 levels) in pageheader'
       # ./app/helpers/newapplication_helper.rb:244:in `block in pageheader'
       # ./app/helpers/newapplication_helper.rb:243:in `pageheader'
       # ./app/views/lines/show.html.slim:2:in `_app_views_lines_show_html_slim___3813514632397395671_70250211127360'
       # ./spec/views/lines/show.html.erb_spec.rb:16:in `block (2 levels) in &lt;top (required)&gt;'
       # -e:1:in `&lt;main&gt;'
       # ------------------
       # --- Caused by: ---
       # NoMethodError:
       #   undefined method `action_links' for #&lt;Chouette::Line:0x007fc8cdf0bb88&gt;
       #   ./app/views/lines/show.html.slim:10:in `block in _app_views_lines_show_html_slim___3813514632397395671_70250211127360'

    6) /lines/show should render a link to remove the line
       Failure/Error: - @line.action_links.each do |link|

       ActionView::Template::Error:
         undefined method `action_links' for #&lt;Chouette::Line:0x007fc8cfdaa710&gt;
       # ./app/views/lines/show.html.slim:10:in `block in _app_views_lines_show_html_slim___3813514632397395671_70250211127360'
       # ./app/helpers/newapplication_helper.rb:246:in `block (2 levels) in pageheader'
       # ./app/helpers/newapplication_helper.rb:244:in `block in pageheader'
       # ./app/helpers/newapplication_helper.rb:243:in `pageheader'
       # ./app/views/lines/show.html.slim:2:in `_app_views_lines_show_html_slim___3813514632397395671_70250211127360'
       # ./spec/views/lines/show.html.erb_spec.rb:31:in `block (2 levels) in &lt;top (required)&gt;'
       # -e:1:in `&lt;main&gt;'
       # ------------------
       # --- Caused by: ---
       # NoMethodError:
       #   undefined method `action_links' for #&lt;Chouette::Line:0x007fc8cfdaa710&gt;
       #   ./app/views/lines/show.html.slim:10:in `block in _app_views_lines_show_html_slim___3813514632397395671_70250211127360'

Update the test to decorate the lines used in them.

Turn `current_organisation` into a `context` field on `LineDecorator`
because otherwise it's a global variable that comes from wherever that's
required in `LineDecorator`. And we'd have to mock
`current_organisation` on `line` in the test, which I wasn't keen on.

Refs #3479
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The tests failed because we weren't using a decorated `Chouette::Line`
object, but the views now expect decorated lines in order to be able to
call the `#action_links` method.

Here are our failures:

    5) /lines/show should render h1 with the line name
       Failure/Error: - @line.action_links.each do |link|

       ActionView::Template::Error:
         undefined method `action_links' for #&lt;Chouette::Line:0x007fc8cdf0bb88&gt;
       # ./app/views/lines/show.html.slim:10:in `block in _app_views_lines_show_html_slim___3813514632397395671_70250211127360'
       # ./app/helpers/newapplication_helper.rb:246:in `block (2 levels) in pageheader'
       # ./app/helpers/newapplication_helper.rb:244:in `block in pageheader'
       # ./app/helpers/newapplication_helper.rb:243:in `pageheader'
       # ./app/views/lines/show.html.slim:2:in `_app_views_lines_show_html_slim___3813514632397395671_70250211127360'
       # ./spec/views/lines/show.html.erb_spec.rb:16:in `block (2 levels) in &lt;top (required)&gt;'
       # -e:1:in `&lt;main&gt;'
       # ------------------
       # --- Caused by: ---
       # NoMethodError:
       #   undefined method `action_links' for #&lt;Chouette::Line:0x007fc8cdf0bb88&gt;
       #   ./app/views/lines/show.html.slim:10:in `block in _app_views_lines_show_html_slim___3813514632397395671_70250211127360'

    6) /lines/show should render a link to remove the line
       Failure/Error: - @line.action_links.each do |link|

       ActionView::Template::Error:
         undefined method `action_links' for #&lt;Chouette::Line:0x007fc8cfdaa710&gt;
       # ./app/views/lines/show.html.slim:10:in `block in _app_views_lines_show_html_slim___3813514632397395671_70250211127360'
       # ./app/helpers/newapplication_helper.rb:246:in `block (2 levels) in pageheader'
       # ./app/helpers/newapplication_helper.rb:244:in `block in pageheader'
       # ./app/helpers/newapplication_helper.rb:243:in `pageheader'
       # ./app/views/lines/show.html.slim:2:in `_app_views_lines_show_html_slim___3813514632397395671_70250211127360'
       # ./spec/views/lines/show.html.erb_spec.rb:31:in `block (2 levels) in &lt;top (required)&gt;'
       # -e:1:in `&lt;main&gt;'
       # ------------------
       # --- Caused by: ---
       # NoMethodError:
       #   undefined method `action_links' for #&lt;Chouette::Line:0x007fc8cfdaa710&gt;
       #   ./app/views/lines/show.html.slim:10:in `block in _app_views_lines_show_html_slim___3813514632397395671_70250211127360'

Update the test to decorate the lines used in them.

Turn `current_organisation` into a `context` field on `LineDecorator`
because otherwise it's a global variable that comes from wherever that's
required in `LineDecorator`. And we'd have to mock
`current_organisation` on `line` in the test, which I wasn't keen on.

Refs #3479
</pre>
</div>
</content>
</entry>
<entry>
<title>Deprecation Warnings removed; Seeds corrected, Refs: #2070</title>
<updated>2017-04-11T13:40:26+00:00</updated>
<author>
<name>RobertDober</name>
</author>
<published>2017-04-10T09:03:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=7b9370d10a2d67b83610b8cf8b876734972c2ee9'/>
<id>7b9370d10a2d67b83610b8cf8b876734972c2ee9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix tests</title>
<updated>2017-02-17T14:18:47+00:00</updated>
<author>
<name>jpl</name>
</author>
<published>2017-02-17T14:18:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=e1e65b2a850c00e7537dfc58ad43b0ade8ebee21'/>
<id>e1e65b2a850c00e7537dfc58ad43b0ade8ebee21</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
